Skip to content

ci: add Codecov coverage reporting#277

Merged
rhuanbarreto merged 5 commits into
mainfrom
ci/codecov-integration
May 6, 2026
Merged

ci: add Codecov coverage reporting#277
rhuanbarreto merged 5 commits into
mainfrom
ci/codecov-integration

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Generate lcov coverage reports using Bun's built-in --coverage flag (zero new dependencies)
  • Upload reports to Codecov via SHA-pinned codecov/codecov-action@v6.0.0 on every PR run
  • Add test:coverage and validate:coverage scripts so local bun run validate stays fast (no coverage overhead)
  • Configure Codecov thresholds: project target auto (1% threshold), patch target 80%

Test plan

  • bun run validate passes locally (725 tests, 23/23 ADR rules)
  • bun run test:coverage generates coverage/lcov.info successfully
  • CI workflow runs validate:coverage and uploads report to Codecov
  • Codecov bot posts coverage summary on this PR

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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 6, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

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

View logs

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>
@rhuanbarreto rhuanbarreto merged commit cb79338 into main May 6, 2026
11 checks passed
@rhuanbarreto rhuanbarreto deleted the ci/codecov-integration branch May 6, 2026 21:04
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