reviewdog-action-code-coverage

June 29, 2025 ยท View on GitHub

The GitHub Action reviewdog-action-code-coverage is designed to seamlessly integrate with reviewdog, a powerful tool that automates the code review process. This action excels in analyzing and reporting code coverage metrics directly within pull requests or commits. Its standout feature is the ability to automatically comment on lines of code in your pull requests that are not covered by tests. This ensures developers are aware of which parts of their new code submissions may need additional testing, thereby preventing any decrease in the overall code coverage of the project. This promotes rigorous testing practices and helps maintain high code quality standards.

Image from Gyazo

Usage

Basic

steps:
  - uses: aki77/reviewdog-action-code-coverage@v2
    with:
      lcov_path: ./coverage/**/*.lcov

Inputs

See action.yml

NameDescriptionDefaultRequired
fail_levelUnless none, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level.noneno
filter_modeFiltering mode for the reviewdog command [added, diff_context, file, nofilter]addedno
github_tokenGITHUB_TOKEN${{ github.token }}no
lcov_pathLcov files path. Support for glob pattern.yes
reporterReporter of reviewdog command [github-check,github-pr-check,github-pr-review].github-pr-reviewno
tool_nameTool name to use for reviewdog reportercode-coverageno
delete_previous_commentsDelete previous comments made by the same tooltrueno