Skip to content

Commit 73590f1

Browse files
fix: upload codecov report as a separate workflow step (#1476)
1 parent f8d35bf commit 73590f1

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/validate.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,26 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node }}
2020
- run: make validate.ci
21+
- name: Archive code coverage results
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: code-coverage-report-${{ matrix.node }}
25+
# When we're only using Node 20, replace the line above with the following:
26+
# name: code-coverage-report
27+
path: coverage/*.*
28+
coverage:
29+
runs-on: ubuntu-latest
30+
needs: tests
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Download code coverage results
34+
uses: actions/download-artifact@v4
35+
with:
36+
name: code-coverage-report-20
37+
# When we're only using Node 20, replace the line above with the following:
38+
# name: code-coverage-report
2139
- name: Upload coverage
2240
uses: codecov/codecov-action@v4
2341
with:
2442
fail_ci_if_error: true
25-
token: ${{ secrets.CODECOV_TOKEN }}
43+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)