Skip to content

Commit

Permalink
feat(.github): add staticcheck (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre authored Nov 22, 2024
1 parent 091aaa2 commit 9d4f987
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.23.x

- name: Install tools
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -50,3 +55,10 @@ jobs:
echo "Code unformatted, please run 'gofmt -w -s .'"
exit 1
fi
- name: staticcheck .
run: staticcheck -checks "inherit,-U1000" ./...

- name: staticcheck ./examples
working-directory: ./examples
run: staticcheck -checks "inherit,-U1000" ./...

0 comments on commit 9d4f987

Please sign in to comment.