actions-marketplace-validations/Create Coverage Badges
Create coverage badges from coverage reports. Using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source | The path of the target file "coverage-summary.json". | no | coverage/coverage-summary.json |
| output | Output image path. | no | coverage/badges.svg |
| label | The left label of the badge, usually static. | no | coverage |
| style | Badges style: flat, classic. | no | classic |
| scale | Set badge scale (default: 1) | no | 1 |
| color | <Color RGB> or <Color Name> (default: '555') | no | — |
| labelColor | <Color RGB> or <Color Name> (default: '') | no | 555 |
| jsonPath | Path to the coverage percentage number to be used in the badge | no | total.lines.pct |
| arbitrary | Allow jsonPath to point to non-number values. Works in conjunction with jsonPath | no | false |
Outputs
| name | description |
|---|---|
| svg | svg image string |