xseman/Coverage
Parse LCOV (Bun, Node.js, Jest, etc.) and Go coverage, compute per-file deltas, and post a sticky PR comment with monospace coverage output.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| coverage-artifact-paths | Newline- or comma-separated list of coverage artifact paths. Each entry is `<tool>:<path>`, e.g. `bun:coverage/lcov.info`, `node:coverage/lcov.info`, or `go:coverage.out`. | yes | — |
| pull-request-number | PR number to comment on. Auto-detected from event context when omitted. Use this when running under workflow_run with fork PRs where auto-detection may fail. | no | "" |
| show-commit-link | Include a commit link at the top of the comment (on/off). | no | on |
| base-branch | Target branch for comparison (e.g. main). Defaults to the PR base ref. | no | "" |
| cache-key | Custom cache key prefix for storing coverage artifacts. | no | coverage-reporter |
| update-comment-marker | Unique marker string to identify the sticky comment. | no | <!-- coverage-reporter-sticky --> |
| colorize | Enable colorized delta markers in the comment (on/off). | no | on |
| fail-on-decrease | Fail the action if any file coverage decreases (true/false). | no | false |
| coverage-threshold | Minimum overall coverage percentage. Fail if below this (0-100). Set 0 to disable. | no | 0 |
| github-token | GitHub token for posting PR comments. Defaults to GITHUB_TOKEN. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| overall-coverage | Overall coverage percentage across all tools. |
| coverage-decreased | 'true' if any file had a coverage decrease. |
| comment-id | ID of the created/updated PR comment. |