mikian/Run diff_cover with reviewdog
🐶 Run diff_cover with reviewdog on pull requests to report missing test coverage.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Sep 12, 2025
- License
- None
Pinned Snippet
uses: mikian/action-diff-cover@edbbaa55c69b81e70da1f3c13d525d0540b73561 # v1.0.11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GITHUB_TOKEN | yes | ${{ github.token }} |
| working_directory | Directory to run the action on, from the repo root. Default is . ( root of the repository) | no | . |
| level | Report level for reviewdog [info,warning,error] | no | error |
| tool_name | The name for the report as it will show up in GitHub's interface. Default is diff-cover. | no | diff-cover |
| reporter | Reporter of reviewdog command [github-pr-check,github-pr-review]. Default is github-pr-check. | no | github-pr-check |
| filter_mode | Filtering for the reviewdog command [added,diff_context,file,nofilter]. Default is added. | no | added |
| fail_level | If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. Possible values: [none,any,info,warning,error] Default is `none`. | no | none |
| flags | Additional reviewdog flags | no | "" |
| base_branch | Base branch to compare changes against. | no | origin/${{ github.event.pull_request.base.ref || github.ref_name }} |
| diff_cover_version | The version of diff_cover to install. Default is latest. | no | latest |
| diff_cover_flags | Additional flags to pass to diff_cover command | no | "" |
| coverage_files | Coverage files to pass to diff_cover command. | no | **/lcov.info |
Outputs
| name | description |
|---|---|
| diff_cover-return-code | diff_cover command return code |
| reviewdog-return-code | reviewdog command return code |