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-coveragethen 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.
badges-dir- The directory where the coverage badges are stored.
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@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}The action generates coverage badges for each coverage view. The badges are generated based on full coverage summary data files created by Delta-Coverage plugin.
deltaCoverageReport {
reports {
fullCoverageReport = true
}
}3.4.0.