diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e65dd5ea..aed4f6ce 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,9 +22,12 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - name: Get dependencies and run test + - name: Get dependencies, run test and static check run: | go test ./... + go vet ./... + go get -u honnef.co/go/tools/cmd/staticcheck + staticcheck -- $(go list ./...) - name: Build if: startsWith(github.ref, 'refs/tags/')