zerowiggliness/Code Coverage Advance
Generate Cobertura coverage results, including changed PR files, create badges, and output markdown coverage reports.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| cobertura-file | Path to the Cobertura XML input file | yes | coverage/cobertura-coverage.xml |
| output-file | Path to save the filtered coverage output file. i.e 'coverage/cobertura-changed-coverage.xml'. Will only be written if it is tun within a push request. Leave empty to disable writing the file. | no | — |
| main-branch | Name of the main branch to compare against | no | ${{ github.repository_default_branch }} |
| coverage-threshold | Threasholds for coverage percentage health "<warning% <success%" i.e "50 75" | no | 50 75 |
| coverage-changes-threshold | Threasholds for coverage percentage health "<warning% <success%" i.e "50 75". This relates to changed file coverage only. | no | 50 75 |
| badge-style | Github badge style to use for the coverage badge. Options are 'flat', 'flat-square', 'plastic', 'for-the-badge', 'social'. | no | flat |
| github-token | GitHub token for accessing the repository | yes | ${{ github.token }} |
| current-branch | Name of the current branch | no | ${{ github.head_ref || github.ref_name }} |
| file-filters | Comma-separated list of file patterns to include/exclude (e.g., "src/**/*.ts,!**/*.test.ts") | no | **/*.* |
| fail-action | Whether to fail the action if coverage is below the threshold. Defaults to true. | no | true |
| max-missing-lines | Maximum number of rows to show in the uncovered lines table. Defaults to 100. | no | 100 |
Outputs
| name | description |
|---|---|
| coverage-markdown | Markdown formatted coverage report |
| coverage-changes-markdown | Markdown formatted coverage of changes only report |
| coverage-passrate | Markdown formatted coverage report |
| coverage-changes-passrate | Markdown formatted coverage of changes only report |
| coverage-badge | The badge markdown |
| coverage-changes-badge | The changed code badge markdown |
| coverage-failed | True if coverage is below the threshold, false otherwise |
| coverage-changes-failed | True if change coverage is below the threshold, false otherwise |
| coverage-missing-lines | Markdown table of uncovered lines grouped by file and method |
| coverage-changes-missing-lines | Markdown table of uncovered lines (changes only) grouped by file and method |