You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Jest Coverage Reporter Action
v1.0.1
A simple coverage reporter for jest which compares json-summary reports for a base branch to the current branch
- name: Coverage
uses: arunshan/jest-cov-reporter@main
with:
branch-coverage-report-path: ./coverage/coverage-summary.json
base-coverage-report-path: ./coverage/master-coverage-summary.json
delta: 0.3
accessToken: <GITHUB_TOKEN>
fullCoverageDiff: true
useSameComment: true
base-coverage-report-path
: Path to base coverage report. Required.branch-coverage-report-path
: Path to the current coverage report. Required.accessToken
: access token required to comment on a pr. Defaults to ${{ github.token }}fullCoverageDiff
: get the full coverage with diff or only the diff. Defaults to falsedelta
: Difference between the old and final test coverage. Defaults to 0.2useSameComment
: While commenting on the PR update the exisiting comment. Defaults to true.