mikian/Run diff_cover with reviewdog

🐶 Run diff_cover with reviewdog on pull requests to report missing test coverage.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Sep 12, 2025
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: mikian/action-diff-cover@edbbaa55c69b81e70da1f3c13d525d0540b73561 # v1.0.11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenGITHUB_TOKENyes${{ github.token }}
working_directoryDirectory to run the action on, from the repo root. Default is . ( root of the repository) no.
levelReport level for reviewdog [info,warning,error]noerror
tool_nameThe name for the report as it will show up in GitHub's interface. Default is diff-cover. nodiff-cover
reporterReporter of reviewdog command [github-pr-check,github-pr-review]. Default is github-pr-check. nogithub-pr-check
filter_modeFiltering for the reviewdog command [added,diff_context,file,nofilter]. Default is added. noadded
fail_levelIf 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`. nonone
flagsAdditional reviewdog flagsno""
base_branchBase branch to compare changes against.noorigin/${{ github.event.pull_request.base.ref || github.ref_name }}
diff_cover_versionThe version of diff_cover to install. Default is latest. nolatest
diff_cover_flagsAdditional flags to pass to diff_cover commandno""
coverage_filesCoverage files to pass to diff_cover command. no**/lcov.info
namedescription
diff_cover-return-codediff_cover command return code
reviewdog-return-codereviewdog command return code