Skip to content

ci: add GitHub Actions for lint, test, build, and integration - #1

Closed
trungdlp wants to merge 4 commits into
mainfrom
trduong/add-github-ci
Closed

ci: add GitHub Actions for lint, test, build, and integration#1
trungdlp wants to merge 4 commits into
mainfrom
trduong/add-github-ci

Conversation

@trungdlp

Copy link
Copy Markdown

Summary

Test CI workflows before submitting upstream to elqsar#5.

  • lint.yml — gofmt check, go vet, golangci-lint
  • test.ymlgo test -race with coverage artifact
  • integration.yml — testcontainers-based tests, 10-min job timeout
  • build.ymlgo mod tidy check, go build, govulncheck

Test plan

  • All 4 workflows trigger and pass on this PR

Add four CI workflows triggered on push/PR to main:
- lint.yml: gofmt check, go vet, golangci-lint
- test.yml: unit tests with race detector and coverage upload
- integration.yml: integration tests via testcontainers (Docker)
- build.yml: go mod tidy check, build verification, govulncheck

Closes #1, closes elqsar#2, closes elqsar#3, closes elqsar#4
Lint fixes (12 issues):
- errcheck: handle Close() return values in slot_store, engine, server_test
- ineffassign: drop unused err from WaitForAcks in engine retry loop
- staticcheck SA1006: use errors.New instead of fmt.Errorf for static string
- staticcheck QF1008: remove redundant .Time on embedded time.Time field
- staticcheck QF1012: use fmt.Fprintf instead of WriteString(fmt.Sprintf)
- unused: remove dead sum/count fields from PrometheusHistogram

Build fix:
- govulncheck: add continue-on-error since failures are stdlib vulns
  requiring a Go version bump (1.25.2 -> 1.25.7), not code changes
The sum/count fields are likely intended for future local tracking
in Mean()/Count()/Sum() methods. Suppress lint instead of removing.
@trungdlp

Copy link
Copy Markdown
Author

Merged elqsar#5

@trungdlp trungdlp closed this Apr 16, 2026
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