From 783f588627a2ba7b442b6a87199da6063c70037d Mon Sep 17 00:00:00 2001 From: Brian Dwyer Date: Thu, 18 Jun 2020 09:48:25 -0400 Subject: [PATCH] Add staticcheck into the fix Signed-off-by: Brian Dwyer --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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