Skip to content

Commit 12fbe56

Browse files
authored
ci: Updated codecov action sha to post coverage from forks. Added flag to fail ci if it fails to upload report (#2490)
1 parent 8b9363b commit 12fbe56

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,30 @@ jobs:
247247
- name: Download artifacts
248248
uses: actions/download-artifact@v4
249249
- name: Post Unit Test Coverage
250-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
250+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
251251
with:
252+
fail_ci_if_error: true
252253
token: ${{ secrets.CODECOV_TOKEN }}
253254
directory: unit-tests-${{ matrix.node-version }}
254255
flags: unit-tests-${{ matrix.node-version }}
255-
- name: Post Integration Test Coverage
256-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
256+
- name: Post Integration CJS Test Coverage
257+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
257258
with:
259+
fail_ci_if_error: true
258260
token: ${{ secrets.CODECOV_TOKEN }}
259-
directory: integration-tests-${{ matrix.node-version }}
260-
flags: integration-tests-${{ matrix.node-version }}
261+
directory: integration-tests-cjs-${{ matrix.node-version }}
262+
flags: integration-tests-cjs-${{ matrix.node-version }}
263+
- name: Post Integration ESM Test Coverage
264+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
265+
with:
266+
fail_ci_if_error: true
267+
token: ${{ secrets.CODECOV_TOKEN }}
268+
directory: integration-tests-esm-${{ matrix.node-version }}
269+
flags: integration-tests-esm-${{ matrix.node-version }}
261270
- name: Post Versioned Test Coverage
262-
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
271+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
263272
with:
273+
fail_ci_if_error: true
264274
token: ${{ secrets.CODECOV_TOKEN }}
265275
directory: versioned-tests-${{ matrix.node-version }}
266276
flags: versioned-tests-${{ matrix.node-version }}

0 commit comments

Comments
 (0)