Skip to content

ci: add Go fmt/vet/test workflow - #4

Merged
tarakanof merged 1 commit into
mainfrom
ci-go-test
Jun 10, 2026
Merged

tarakanof merged 1 commit into
mainfrom
ci-go-test

Conversation

@tarakanof

Copy link
Copy Markdown
Owner

Summary

  • Add .github/workflows/ci.yml running gofmt, go vet, and go test ./... -race on every push to main and every PR — the checks AGENTS.md already mandates before a commit.
  • Pure-Go build (modernc.org/sqlite, no CGO) → ubuntu-latest; Go version tracks go.mod; concurrency cancels superseded runs.
  • Normalise one pre-existing gofmt alignment nit in cmd/ember/metrics_test.go so the new gofmt gate passes from the first run.

Test Plan

  • gofmt -l . clean, go vet ./... clean, go test ./... -race green locally
  • Workflow YAML parses (yq)
  • Confirm the Go (fmt, vet, test -race) check runs green on this PR

🤖 Generated with Claude Code

Gate the Go server on every push to main and every PR with the same checks
AGENTS.md requires before a commit: gofmt cleanliness, go vet, and the
race-enabled test suite. Pure-Go build (no CGO), so ubuntu-latest suffices;
the Go version tracks go.mod. Concurrency cancels superseded runs.

Also gofmt-normalise one pre-existing alignment nit in metrics_test.go so the
new gofmt gate is green from the first run.
@tarakanof
tarakanof merged commit 3204c79 into main Jun 10, 2026
1 check passed
@tarakanof
tarakanof deleted the ci-go-test branch June 10, 2026 09:56
tarakanof added a commit that referenced this pull request Oct 6, 2026
Reviewed: independent Opus review #305 (comment); fixes in 1cd7e74 + b5e5b87; re-check #305 (comment) (no blockers, 6/7 verified, #4 partial -> #308). CI green.
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