From 45d66e32ac23bb613b2d6bbd20adfb81ff02801f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=91=E8=A2=8B=E9=87=8C=E8=BF=9B=E8=8A=B1=E7=94=9F?= =?UTF-8?q?=E4=BA=86?= <109732988+Redmomn@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:31:23 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AFix=20lint=20&=20test=20(#120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix test & lint * chore: fix test & lint * chore: fix test & lint * chore: fix test & lint --- .github/workflows/test_and_lint.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml index 4125b15..bec5791 100644 --- a/.github/workflows/test_and_lint.yml +++ b/.github/workflows/test_and_lint.yml @@ -12,6 +12,9 @@ on: name: Test & Lint +env: + GO111MODULE: on + jobs: test: runs-on: ubuntu-latest @@ -25,8 +28,6 @@ jobs: go-version: '^1.23' cache: false - run: go get - - run: go install golang.org/x/tools/cmd/stringer - - run: go generate ./... - run: go test -v -race ./... lint: @@ -41,8 +42,6 @@ jobs: go-version: '^1.23' cache: false - run: go get - - run: go install golang.org/x/tools/cmd/stringer - - run: go generate ./... - name: Go vet run: go vet ./...