The action creates check run with detailed coverage info based on the Delta-Coverage summary report. Also, the action creates a comment in the pull request with links to the check runs.
title
(optional): The title of the comment. Default isDelta Coverage Check
.summary-report-path
: The path to the Delta-Coverage summary report json file.suppress-check-failures
(optional): Suppress check run failures. If a PR contains labelsuppress-delta-coverage
then the default value istrue
, otherwisefalse
. Can be useful when you want to ignore coverage check failures.github-token
(optional): The GitHub token to use for authentication.
If title
is not blank then the previous comment generated by this action will be updated with the new report,
otherwise a new comment will be created.
Required permissions:
- issues:
read
- pull-requests:
write
- checks:
write
jobs:
build:
runs-on: ubuntu-latest
permissions:
issues: read
pull-requests: write
checks: write
steps:
- name: Publish Delta Coverage Report
uses: gw-kit/delta-coverage-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}