You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `enabled` | `true` | Set to `false` to disable code coverage entirely. |
91
+
| `only_list_changed_files` | `true` | Only list files changed in the PR in the coverage report. |
92
+
| `badge` | `true` | Include a coverage badge in the report using shields.io. |
93
+
| `overall_coverage_fail_threshold` | `0` | Fail the workflow if overall coverage is below this percentage. |
94
+
| `file_coverage_error_min` | `50` | Files with coverage below this percentage are marked as error (red). |
95
+
| `file_coverage_warning_max` | `75` | Files with coverage below this percentage are marked as warning (orange). Above is success (green). |
96
+
| `fail_on_negative_difference` | `false` | Fail the workflow if any file coverage decreased compared to the base branch. |
97
+
| `retention_days` | `90` | Number of days to retain coverage artifacts for base branch comparison. |
98
+
99
+
> **Tip:** To use as a reference without enabling coverage (e.g. for `glpi-empty`), create the file with `"enabled": false`.
100
+
101
+
### Coverage report workflow
102
+
103
+
The `coverage-report.yml` reusable workflow generates a PR comment with a coverage summary. It compares the coverage from the current PR against the base branch (using stored artifacts).
The `coverage-refresh.yml` reusable workflow ensures that the base branch coverage artifact stays available for comparison.
116
+
It checks the artifact expiry date via the GitHub API and triggers the CI workflow on the default branch only if the artifact is missing or will expire within the next day.
117
+
118
+
It should be triggered on `schedule` events (the daily cron in the CI workflow):
0 commit comments