Skip to content

Commit

Permalink
CI: use staticcheck-action
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Dec 2, 2023
1 parent 26bddf5 commit 31ff94c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
run: go test -race -count=1 ./...

- name: staticcheck.io
if: matrix.platform == 'ubuntu-latest'
# https://github.com/actions/setup-go/issues/14
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go get -u honnef.co/go/tools/cmd/staticcheck
staticcheck -checks all .
if: startsWith(matrix.go-version, '1.21')
uses: dominikh/[email protected]
with:
version: "2023.1.6"
install-go: false
cache-key: ${{ matrix.go }}

0 comments on commit 31ff94c

Please sign in to comment.