Skip to content

chore: lower minimum Go to 1.24 and add CI matrix#11

Merged
mojatter merged 4 commits intomainfrom
chore/go-1.24
Apr 7, 2026
Merged

chore: lower minimum Go to 1.24 and add CI matrix#11
mojatter merged 4 commits intomainfrom
chore/go-1.24

Conversation

@mojatter
Copy link
Copy Markdown
Owner

@mojatter mojatter commented Apr 7, 2026

Summary

  • Drop `go.mod`'s go directive from 1.26 to 1.24 so projects on older toolchains can consume wfs.
  • Add a Go version matrix (`1.24`, `stable`) to `tests.yaml` so regressions against the lowest supported version are caught in CI.

Part of the v0.5.0 release prep.

Test plan

  • CI matrix passes on 1.24 / stable
  • `go test ./...` locally on 1.24

Drop go.mod's go directive from 1.26 to 1.24 so the module can be
consumed from projects that have not yet moved to the latest toolchain.
Add a Go version matrix (1.24, 1.25, stable) to tests.yaml so future
regressions against the lowest supported version are caught in CI.
@mojatter mojatter mentioned this pull request Apr 7, 2026
2 tasks
mojatter added 3 commits April 7, 2026 18:19
staticcheck v0.7.0 requires Go >= 1.25 and therefore fails to install
on the matrix's 1.24 job. Gate the staticcheck and gosec steps on
matrix.go-version == 'stable' so the lint pass runs once per workflow
on the latest toolchain while go test still exercises every supported
Go version.
The matrix only needs the minimum supported (1.24) and the latest
(stable) toolchains; the in-between 1.25 entry adds CI time without
catching anything the two endpoints would not.
Adding the matrix renamed the per-version checks to 'tests (1.24)' /
'tests (stable)', so the branch protection required check named
'tests' is never reported and PRs hang in 'Expected — Waiting for
status to be reported'. Rename the matrix job to 'test' and add a
trivial 'tests' aggregator that depends on it; this keeps the required
check name stable across future matrix changes without touching
branch protection.
@mojatter mojatter merged commit c8ac0be into main Apr 7, 2026
3 checks passed
@mojatter mojatter deleted the chore/go-1.24 branch April 7, 2026 09:45
@mojatter mojatter mentioned this pull request Apr 7, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant