Skip to content

ci: add PR coverage check workflow#6570

Closed
vividctrlalt wants to merge 2 commits intotronprotocol:developfrom
vividctrlalt:ci/coverage-check
Closed

ci: add PR coverage check workflow#6570
vividctrlalt wants to merge 2 commits intotronprotocol:developfrom
vividctrlalt:ci/coverage-check

Conversation

@vividctrlalt
Copy link
Contributor

Summary

  • Add a new GitHub Actions workflow (coverage-check.yml) that compares code coverage between PR branch and base branch
  • Runs JaCoCo test coverage on both branches in parallel, then compares results
  • Posts a coverage report as a PR comment with per-module breakdown
  • Fails the check if line coverage drops more than the configurable threshold (default: 1%)

Test plan

  • Open a test PR against develop to verify the workflow triggers
  • Verify JaCoCo reports are generated and uploaded as artifacts
  • Verify the coverage comparison comment is posted on the PR
  • Verify the check fails when coverage drops beyond threshold

@kuny0707 kuny0707 reopened this Mar 5, 2026
@kuny0707 kuny0707 closed this Mar 5, 2026
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.

2 participants