Skip to content

Commit 9d4f987

Browse files
authored
feat(.github): add staticcheck (#326)
1 parent 091aaa2 commit 9d4f987

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
uses: actions/setup-go@v5
2929
with:
3030
go-version: 1.23.x
31+
32+
- name: Install tools
33+
run: |
34+
go install honnef.co/go/tools/cmd/staticcheck@latest
35+
3136
- name: Checkout code
3237
uses: actions/checkout@v4
3338

@@ -50,3 +55,10 @@ jobs:
5055
echo "Code unformatted, please run 'gofmt -w -s .'"
5156
exit 1
5257
fi
58+
59+
- name: staticcheck .
60+
run: staticcheck -checks "inherit,-U1000" ./...
61+
62+
- name: staticcheck ./examples
63+
working-directory: ./examples
64+
run: staticcheck -checks "inherit,-U1000" ./...

0 commit comments

Comments
 (0)