LCOV Coverage Check
A composite GitHub Action that parses LCOV coverage files and enforces coverage standards on pull requests.
Features
- Coverage summary — Reports overall line coverage from any LCOV file.
- Baseline comparison — Compare current coverage against a baseline LCOV file to catch regressions.
- New file thresholds — Enforce a minimum coverage percentage on newly added files (configurable path prefix and threshold).
- Per-file regression guard — Optionally fail when modified files lose coverage vs. the baseline.
- PR comments — Post a formatted coverage summary directly on the pull request (requires
github-token). - Outputs — Exposes
overall-coverage,baseline-coverage, andpassedfor downstream steps.
Usage
- uses: pento/lcov-coverage-check@v1
with:
lcov-file: coverage/lcov.info
lcov-base: coverage/lcov-base.info
base-ref: ${{ github.event.pull_request.base.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}