ci: add comprehensive CI pipeline with tests, lints, and security checks#119
Merged
ci: add comprehensive CI pipeline with tests, lints, and security checks#119
Conversation
Add new CI workflow (.github/workflows/ci.yml) with: - Lint job: gofmt, go vet, golangci-lint - Test job: Matrix testing on Go 1.24 and 1.25 with race detector and coverage - Build job: Cross-platform builds (linux/darwin/windows × amd64/arm64) - Security job: Gosec security scanner with SARIF upload - Type check job: Verify all packages compile - Validate job: Final gate requiring all checks to pass Coverage reporting: - Codecov integration for coverage tracking - Race detector enabled for concurrent bug detection - Atomic coverage mode for accuracy Build artifacts: - Binary artifacts for all platforms - 7-day retention for debugging - Uploaded to GitHub Actions artifacts Docker workflow improvements: - Add explicit permissions (contents:read, packages:write) - Maintains existing functionality README updates: - Add CI Status badge linking to workflow runs - Positioned after Go Report Card for logical grouping All workflows validated for YAML syntax
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Action version updates: - actions/checkout: v4 → v5 - actions/setup-go: v5 → v6 - golangci/golangci-lint-action: v6 → v8 - codecov/codecov-action: v4 → v5 Coverage fixes: - Change coverage file: coverage.out → coverage.txt (fixes covdata error) - Update codecov-action parameter: file → files - Add fail_ci_if_error: false to prevent blocking on upload issues Security job improvements: - Add explicit permissions for security-events:write (required for SARIF upload) All action versions verified as latest stable releases for 2025
We deliver binaries and Docker images, not a library. Since go.mod requires Go 1.25.1, testing on Go 1.24 makes no sense. Changes: - Remove matrix strategy from test job - Use go-version-file: 'go.mod' to test with required version - Remove conditional for Codecov upload (always upload now) This aligns testing with actual deployment requirements.
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
Comprehensive GitHub Actions CI pipeline implementing automated testing, linting, security scanning, and cross-platform builds.
New CI Workflow
🔍 Lint Job
🧪 Test Job
-race)go mod verify🏗️ Build Job
🔒 Security Job
✅ Type Check Job
✔️ Validate Job
Workflow Triggers
Docker Workflow Improvements
contents:read,packages:writeREADME Updates
Testing
Benefits