From 04d28d2244ad149e521dc5200d75b75ce64e9034 Mon Sep 17 00:00:00 2001 From: evilolipop Date: Wed, 27 Dec 2023 11:10:54 +0800 Subject: [PATCH] update workflows --- .github/workflows/go.yml | 7 ++++--- .gitignore | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index df07f95..9244b2a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,12 +17,13 @@ jobs: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.21.x' + # go-version: '1.21.x' + go-version-file: 'go.mod' - name: Build - run: go build -v ./... + run: go build -v -o bin/ ./... - name: Test run: go test -v ./... diff --git a/.gitignore b/.gitignore index 3b735ec..6551241 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ # Go workspace file go.work + +.vscode