Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-coverage-reporter

Post code coverage summaries as sticky PR comments.

CI

What it does

Parses a Jest/istanbul coverage-summary.json, renders a markdown coverage table, and upserts a sticky comment on your PR. Warns when any metric falls below your threshold.

Usage

name: Coverage Report
on: [pull_request]

jobs:
  coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test -- --coverage
      - uses: ollieb89/code-coverage-reporter@v1.0.0
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          pr-number: ${{ github.event.pull_request.number }}
          threshold: 80

Inputs

Input Required Default Description
token GitHub token
pr-number PR number to comment on
coverage-summary-path coverage/coverage-summary.json Path to summary file
threshold 80 Minimum % before warning

Outputs

Output Description
status ok or warning

Keywords

github-actions, code-coverage, testing, istanbul, jest, pr-comments, github, developer-tools

License

MIT © 2026 ollieb89

About

GitHub Action to parse coverage reports and post PR summary comments with threshold checks

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages