Skip to content

ci: improved check-coverage action #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benceharomi
Copy link
Collaborator

@benceharomi benceharomi commented Jun 26, 2025

Description

Added PR commenting functionality to the check-coverage GitHub action (post a comment with the result of the code coverage check to an opened PR).

Functional requirements

  • The GitHub action is capable of adding a comment with the result of coverage check (percentage, percentage threshold, #lines covered)
  • The GitHub action is capable of updating the previous comment it posted (to not spam the PR with comments after each change)

Testing requirements

Test passing coverage checks (these are tested in PR #3):

  • coverage check passes -> action successful -> result commented
  • success comment updated with fail comment
  • success comment updated with success comment (with different %)

Test failing coverage checks (these are tested in PR #4):

  • coverage check fails -> action unsuccessful -> result commented
  • fail comment updated with success comment
  • fail comment updated with fail comment (with different %)

Copy link

📊 Coverage Report

Metric Coverage Required Status
Lines 100.00% 90% ✅ Above threshold

Details: 4 of 4 lines covered.

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