Skip to content

ci: add a comment to test diff against main coverage baseline - #2

Open
knecasov wants to merge 3 commits into
mainfrom
test-coverage-baseline
Open

ci: add a comment to test diff against main coverage baseline#2
knecasov wants to merge 3 commits into
mainfrom
test-coverage-baseline

Conversation

@knecasov

@knecasov knecasov commented Mar 6, 2026

Copy link
Copy Markdown
Owner

Test PR to verify coverage diff report against main baseline.

knecasov added 3 commits March 6, 2026 17:12
- add coverage.yml workflow that calls `make test-coverage`
- enable coverage comparison against main branch baseline
- find PR number via GitHub API with event context fallback
- post coverage report as PR comment
- defer workflow failure until after PR comment and artifacts are posted
- add .testcoverage.yml with initial zero thresholds
- add coverage output folder to .gitignore
- add test-coverage target combining unit tests, integration
  tests, coverage merge, and HTML report generation
- add GOFLAGS, COVERDIR, and GOCOVERDIR variables with
  configurable defaults
- consolidate all coverage output under test/coverage/`

Signed-off-by: Klara Necasova <knecasov@redhat.com>
ci: add Go test coverage workflow
Signed-off-by: Klara Necasova <knecasov@redhat.com>
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

go-test-coverage report

Total test coverage: 52.9% (327/618)

No coverage changes in any files compared to the base.

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