Description
Add a CI workflow so pull requests are automatically validated with build, test, and lint checks.
Motivation
Without CI, simple regressions (formatting, lint, compile errors, missing resource cleanup) can land undetected. Automated checks improve code quality and review confidence.
Proposed Solution
Create .github/workflows/ci.yml that:
- Uses
actions/setup-go.
- Runs
go build ./....
- Runs
go test ./....
- Runs
golangci-lint.
- Triggers on pull requests and pushes to the default branch.
Alternatives Considered
- Only run tests and build (no lint): faster, but lower static quality checks.
- Local only checks via contributor machines: inconsistent and easy to skip.
Additional Context
- Area:
.github/workflows/ (new directory) and .github/workflows/ci.yml (new file)
- This directly helps catch issues like deferred close omissions and style/format defects earlier.
Description
Add a CI workflow so pull requests are automatically validated with build, test, and lint checks.
Motivation
Without CI, simple regressions (formatting, lint, compile errors, missing resource cleanup) can land undetected. Automated checks improve code quality and review confidence.
Proposed Solution
Create
.github/workflows/ci.ymlthat:actions/setup-go.go build ./....go test ./....golangci-lint.Alternatives Considered
Additional Context
.github/workflows/(new directory) and.github/workflows/ci.yml(new file)