actions-marketplace-validations/Jest Coverage Comment
Comments a pull request or commit with the Jest code coverage badge, full report and tests summary
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Nov 29, 2025
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/mishakav_jest-coverage-comment@3d4915da832d2d3103efed6aec90971ee6de4c4c # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub API Access Token | yes | ${{ github.token }} |
| issue-number | Pull request number to comment on (required for workflow_dispatch/workflow_run events) | no | "" |
| title | Main title for the comment | no | — |
| coverage-summary-path | The location of the coverage-summary of Jest | no | ./coverage/coverage-summary.json |
| summary-title | Title for the coverage summary | no | "" |
| badge-title | Title for the badge icon | no | Coverage |
| text-instead-badge | Use simple text instead of badge images for coverage display | no | false |
| hide-summary | Hide coverage summary report | no | false |
| hide-comment | Hide the whole comment (use when you need only `output`) | no | false |
| remove-links-to-files | Remove links to files (useful when summary-report is too big) | no | false |
| remove-links-to-lines | Remove links to lines (useful when summary-report is too big) | no | false |
| create-new-comment | When false, will update the same comment, otherwise will publish new comment on each run | no | false |
| junitxml-path | The location of the junitxml path (npm package `jest-junit` should be installed) | no | "" |
| junitxml-title | Title for summary for junitxml | no | "" |
| coverage-path | The location of the coverage.txt (Jest console output) | no | "" |
| coverage-title | Title for the coverage report | no | Coverage Report |
| coverage-path-prefix | Prefix for path when link to files in comment | no | "" |
| report-only-changed-files | Show in report only changed files for this commit, and not all files | no | false |
| multiple-files | You can pass array of `json-summary.json` files and generate single comment with table of results. Single line should look like `Title1, ./path/to/json-summary.json` | no | "" |
| multiple-junitxml-files | You can pass array of `junit.xml` files and generate single comment with table of results. Single line should look like `Title1, ./path/to/junit.xml` | no | "" |
| unique-id-for-comment | When running in a matrix, pass the matrix value, so each comment will be updated its own comment | no | "" |
Outputs
| name | description |
|---|---|
| coverage | Value indicating the coverage percentage of your report based on Jest, example 78 |
| color | Color of coverage report |
| summaryHtml | The HTML of the coverage summary report (markdown table) |
| tests | Total number of tests, get from `junitxml` |
| skipped | Total number of skipped tests, get from `junitxml` |
| failures | Total number of tests with failures, get from `junitxml` |
| errors | Total number of tests with errors, get from `junitxml` |
| time | Seconds that took to run all the tests, get from `junitxml` |
| lines | Lines covered, get from Jest text report |
| branches | Branches covered, get from Jest text report |
| functions | Functions covered, get from Jest text report |
| statements | Statements covered, get from Jest text report |