mcclurejt/Cover 2

Parse LCOV coverage files and post a delta report as a PR comment

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
head-lcov-filePath to the LCOV coverage file from the PR/head branch. Supports glob patterns (e.g., "coverage/*.lcov"). yes
base-lcov-filePath to the LCOV coverage file from the base/target branch. If not provided, no delta column will be shown. no""
github-tokenGitHub token for posting PR comments. Defaults to the built-in GITHUB_TOKEN.no${{ github.token }}
thresholdsTwo space-separated percentages: "lower upper" (e.g., "60 80"). Below lower = failure indicator, between = warning, above upper = success. no60 80
fail-below-thresholdFail the action if overall line coverage is below the lower threshold.nofalse
show-badgeInclude a shields.io coverage badge in the comment.notrue
show-branch-coverageShow branch coverage column in the table.notrue
show-function-coverageShow function coverage column in the table.nofalse
show-unchanged-filesShow files that exist in both base and head but have no coverage change. When false (default), only files with coverage deltas or new/removed files are shown. nofalse
comment-headerA unique identifier for the comment. Allows multiple instances of this action to post separate comments on the same PR. nocoverage
save-baselineBranch name to save the head LCOV file to as a baseline for future PRs. Creates an orphan branch if it doesn't exist. Typically used on push to the default branch (e.g., after a PR merge). no""
baseline-fromBranch name to fetch the baseline LCOV file from for delta comparison. When set, overrides base-lcov-file. The baseline is fetched via the GitHub API — no checkout required. no""
working-directoryWorking directory for resolving relative file paths.no.
namedescription
total-line-rateOverall line coverage percentage (0-100) for the head branch.
total-branch-rateOverall branch coverage percentage (0-100) for the head branch.
total-line-rate-deltaChange in overall line coverage compared to base branch.
comment-idID of the created or updated PR comment.
reportThe full Markdown report as a string.