From b70882f01acb60bd305c4303322b68902412b272 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Tue, 25 Aug 2020 22:32:23 +0800 Subject: [PATCH] Chore: add static check --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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/')