ci: add pinned staticcheck job to PR workflow
CI / fmt (pull_request) Successful in 4m45s
CI / vet (pull_request) Successful in 10m46s
CI / test (pull_request) Successful in 12m54s
CI / staticcheck (pull_request) Successful in 10m55s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 07:53:23 +07:00
co-authored by Claude Opus 4.7
parent 3eb64338c9
commit 6c6a6280b6
+10
View File
@@ -36,3 +36,13 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
- run: go vet ./... - run: go vet ./...
staticcheck:
runs-on: linux
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
- run: $(go env GOPATH)/bin/staticcheck ./...