Skip to content

Commit 12c05e2

Browse files
committed
🧪 Notify Codecov about upload completions
This aims to prevent Codecov from processing coverage reports too early.
1 parent 2fed7c6 commit 12c05e2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
---
2+
3+
codecov:
4+
notify:
5+
manual_trigger: true # prevent notifications until we notify Codecov
6+
7+
require_ci_to_pass: false
8+
19
comment: false # avoid spamming reviews
10+
11+
...

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,23 @@ jobs:
255255
&& exit 1
256256
shell: bash
257257

258+
coverage-summary:
259+
name: Coverage processing
260+
if: >-
261+
!cancelled()
262+
runs-on: ubuntu-latest
263+
timeout-minutes: 1
264+
needs:
265+
- test
266+
steps:
267+
- name: Notify Codecov that all coverage reports have been uploaded
268+
if: >-
269+
!cancelled()
270+
uses: codecov/codecov-action@v5
271+
with:
272+
fail_ci_if_error: true
273+
run_command: send-notifications
274+
258275
check: # This job does nothing and is only used for the branch protection
259276
if: always()
260277

0 commit comments

Comments
 (0)