Commit b4cc6fb
authored
ci(coverage): make checks informational on release branches (#541)
Make codecov status checks informational on `main`/`release/**` branches
so they don't block Craft publishing, while keeping patch coverage
blocking on PRs.
## Changes
- **`codecov.yml`**: Add `coverage.status` config with `project` always
informational and `patch` blocking by default (for PRs)
- **`ci.yml`**: Add `sed` step on push events to flip `patch` to
informational on `main`/`release/**`
## Behavior
| Context | `codecov/project` | `codecov/patch` |
|---------|-------------------|-----------------|
| PR | informational | **blocking** |
| `main` / `release/**` push | informational | informational |
Uses `getsentry/codecov-action`'s `informational` config option. Since
the action has no per-branch config support, the CI workflow
conditionally edits `codecov.yml` via `sed` on push events before
running the action.1 parent 0d726e3 commit b4cc6fb
3 files changed
+84
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
0 commit comments