ci: add Codecov coverage reporting#277
Merged
Merged
Conversation
Generate lcov coverage reports via Bun's built-in --coverage flag and upload them to Codecov on every PR validation run. Uses a validate:coverage script variant so local bun run validate stays fast (no coverage overhead). Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Deploying archgate-cli with
|
| Latest commit: |
1599263
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://543adb5b.archgate-cli.pages.dev |
| Branch Preview URL: | https://ci-codecov-integration.archgate-cli.pages.dev |
Generate JUnit XML test results alongside lcov coverage using Bun's built-in --reporter=junit flag. Upload to Codecov Test Analytics for test run time tracking and flaky test detection. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Codecov needs a baseline coverage report on the main branch to compute diffs on PRs. Add push trigger to the validation workflow so coverage is uploaded after each merge to main. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
This reverts commit 011e5ad. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
The release workflow runs validation on push to main. Add coverage and test results uploads here so Codecov has a baseline report on the main branch for computing PR diffs. Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
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
--coverageflag (zero new dependencies)codecov/codecov-action@v6.0.0on every PR runtest:coverageandvalidate:coveragescripts so localbun run validatestays fast (no coverage overhead)Test plan
bun run validatepasses locally (725 tests, 23/23 ADR rules)bun run test:coveragegeneratescoverage/lcov.infosuccessfullyvalidate:coverageand uploads report to Codecov