Skip to content

Commit b4cc6fb

Browse files
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

File tree

3 files changed

+84
-10
lines changed

3 files changed

+84
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ jobs:
179179
run: bun run test:isolated --coverage --coverage-reporter=lcov --coverage-dir=coverage-isolated
180180
- name: Merge Coverage Reports
181181
run: bun run script/merge-lcov.ts coverage/lcov.info coverage-isolated/lcov.info > coverage/merged.lcov
182+
- name: Make coverage checks informational on release branches
183+
if: github.event_name == 'push'
184+
run: |
185+
sed -i 's/informational: false/informational: true/' codecov.yml
182186
- name: Coverage Report
183187
uses: getsentry/codecov-action@main
184188
with:

0 commit comments

Comments
 (0)