mirror of
https://github.com/vee1e/subidx.git
synced 2026-09-01 17:57:13 +00:00
ci: add staticcheck lint job
New parallel lint job running Staticcheck (all checks) pinned to 2026.2.1 — the version the codebase was validated against — with the action pinned by commit SHA like the others. Two findings it surfaced on first run are already fixed in the parent commit.
This commit is contained in:
parent
35c2cb1fa4
commit
feae493b0f
1 changed files with 17 additions and 0 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
|
@ -38,3 +38,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version-input: ""
|
go-version-input: ""
|
||||||
go-package: ./...
|
go-package: ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Staticcheck
|
||||||
|
uses: dominikh/staticcheck-action@9716614d4101e79b4340dd97b10e54d68234e431 # v1.4.1
|
||||||
|
with:
|
||||||
|
checks: all
|
||||||
|
version: "2026.2.1" # validated locally; bump deliberately
|
||||||
|
install-go: false # Go comes from setup-go above
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue