ci: add GitHub Actions CI workflow (#5)#6
Merged
Merged
Conversation
Run the quality gate on every PR and push to main, plus a coverage report, govulncheck, and a five-OS/arch cross-compile matrix. The workflow is read-only: no tags, no publishes, no registry writes — release automation lives in a separate workflow (#4). Pins: actions/checkout@v4, actions/setup-go@v5, and upload-artifact@v4 are first-party major tags. golangci-lint, goimports, and govulncheck pinned via go-install module versions so CI is reproducible.
This was referenced Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/ci.yml— the first CI workflow for this repo.Jobs:
fmt-check,vet,lint,tidy-checkmake test+make test-bdd(no-op until feat: add Swap and Clear methods #13)make coverage, uploadscoverage.out/coverage.html, writes total coverage to the job summarygovulncheckagainst the repoCloses #5.
Supply-chain and permission posture
permissions: contents: read. No job escalates.concurrency: ci-<workflow>-<ref>withcancel-in-progress: true.actions/*pinned to major tags (@v4,@v5).golangci-lintpinned tov2.11.4,goimportstov0.44.0,govulnchecktov1.2.0viago installmodule versions.git tag, nogoreleaser release, no registry push, no content writes. Release automation lives in a separate workflow (plan item chore: add .gitignore, Makefile, and .golangci.yml (#3) #4).Local validation
actionlint .github/workflows/ci.yml— 0 issues (actionlint v1.7.12)make checkonfeature/ci-workflowHEAD — PASS (fmt-check / vet / lint / test / tidy-check / security)Out of scope
make test-bddstep is wired in now so the workflow will start enforcing it the momenttests/bdd/lands.Test plan
testmatrix shows three distinct runs (ubuntu/macos/windows)build-matrixshows five distinct runscoverageartefact is downloadable from the runNote: the earlier merged PRs (#2, #4) predate this workflow, so this is the first run. Future PRs will gate on CI per the plan.