Consolidate CI into test.yml and add lint lockstep
Stacked on #192 (shares Makefile edits); retargets to main when that merges.
What
- Delete
ci.yml.test.ymlis the single PR gate:test(tidy-check,go test -v ./...,make build,--versionsmoke),lint(fmt, vet, lockstep check, golangci-lint v2.11.1),lint-actions(actionlint + zizmor v0.6.2),security(govulncheck),race-check(whole tree),cli-surface(TestSurfaceSnapshot).HEY_NO_KEYRING=1on Go jobs.workflow_callstays until the release.yml port gives it its own tag-SHA test job. scripts/check-lint-lockstep.sh(ported from basecamp-cli): everygolangci-lint-actionstep must be pinned, all pins must agree, and they must be ≥v2.11.1. Wired asmake check-lint-lockstep, part ofmake check, and runs before the linter in CI.- Pre-commit golangci rev
v2.1.6→v2.11.1;make toolsinstalls the pinned version instead of@latest. - New
codeql.yml(go + actions) using the previously orphaned.github/codeql/codeql-config.yml. - PR labeler (
commands,tui,auth,output,skills,plugin,tests,docs,deps,ci). - CODEOWNERS covers
.goreleaser.yamlandscripts/release.sh; dependabotdeps/cicommit prefixes; sensitive-change gate extended to the release config,release.yml, and the installer/signing scripts (some of which arrive in later PRs — the gate is pattern-based, so listing them now is harmless).
Verified
actionlint (with shellcheck), zizmor clean, make check-lint-lockstep, golangci-lint run (0 issues), TestSurfaceSnapshot.
Summary by cubic
Consolidates CI into a single test.yml gate, enforces golangci-lint lockstep, and runs the security workflow on every pull request so required secret scanning covers stacked branches. Previously checks were split across ci.yml and test.yml with different pins, and security only ran for PRs targeting main.
-
test.ymlis the sole gate: module tidiness, unit tests with coverage floor, build + pipefail smoke, lint (fmt, vet, lockstep precheck,golangci-lintv2.11.1), Actions audit (actionlint,zizmor),govulncheck@latest, race tests, and CLI surface snapshot. SetsHEY_NO_KEYRING=1. Triggers on all PRs, pushes tomain, and temporarily viaworkflow_call. -
Strict lockstep:
scripts/check-lint-lockstep.shuses pure Bash numeric comparison and accepts quoted pins; fails on unpinned steps, mismatched pins, or versions below v2.11.1. Runs before the linter, is wired asmake check-lint-lockstep, and is part ofmake check. Pre-commit pinsgolangci-lintv2.11.1;make toolsinstalls the same pin. -
Security:
security.ymlnow runs on every pull request so secret scanning is present on the head SHA for stacked PRs. -
Also adds
codeql.yml(Go and Actions) on a weekly schedule, a PR labeler (.github/workflows/labeler.yml+labeler.yml), extendsCODEOWNERS, sets Dependabot commit prefixes (deps,ci), and expands the sensitive-change gate to release and installer scripts. -
Required: when bumping
golangci-lint, update all workflow pins and raiseMIN_VERSIONinscripts/check-lint-lockstep.shin the same commit; runmake toolsto sync the pinned version.