Skip to content

Enable codecov coverage checks#64

Closed
kdacosta0 wants to merge 1 commit intomainfrom
add-codecov-coverage
Closed

Enable codecov coverage checks#64
kdacosta0 wants to merge 1 commit intomainfrom
add-codecov-coverage

Conversation

@kdacosta0
Copy link
Copy Markdown
Member

Summary

  • Adds a GitHub Actions workflow (.github/workflows/code-coverage.yml) that runs Go tests with coverage on every PR and push to main, then uploads the report to Codecov.
  • Adds codecov.yml with coverage status thresholds:
    • Patch coverage: 70% target with 5% threshold — new/changed lines in a PR must maintain at least 70% coverage (with 5% tolerance).
    • Project coverage: auto target, informational only — tracks overall project coverage trend without blocking PRs.
  • Adds coverage.out to .gitignore to keep the generated coverage artifact out of version control.

Setup Required

CODECOV_TOKEN must be configured as a repository secret in GitHub. Without this token, the Codecov upload step will fail (fail_ci_if_error: true).

Test Plan

  • Verify the Code Coverage workflow triggers on PRs targeting main
  • Verify coverage.out is listed in .gitignore and not tracked by git
  • Verify Codecov receives the coverage report after a successful workflow run
  • Verify Codecov PR status checks appear (patch and project)

Implements SECURESIGN-4375

…[SECURESIGN-4375]

Implements SECURESIGN-4375

Assisted-by: Claude Code
@kdacosta0 kdacosta0 closed this May 7, 2026
@kdacosta0 kdacosta0 deleted the add-codecov-coverage branch May 7, 2026 13:15
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