diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 26b431e..766d0e7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,8 +24,10 @@ jobs: env: GOFLAGS: '-mod=vendor' run: | - go fmt $(go list ./... | grep -v /vendor/) + GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck + go fmt $(go list ./... | grep -v /vendor/) | xargs -I {} -r /bin/sh -c "/bin/echo {} && exit 1" go vet $(go list ./... | grep -v /vendor/) + staticcheck $(go list ./... | grep -v /vendor/) go test -v -race $(go list ./... | grep -v /vendor/) - name: Run GoReleaser