Skip to content

Commit fca9692

Browse files
authored
Update CI workflow to conditionally upload coverage reports for Ubuntu only (#129)
- Modified the CI workflow to ensure that the coverage report upload and Codecov integration steps are executed only on the 'ubuntu-latest' environment. This change improves the efficiency of the CI process by limiting unnecessary actions on other operating systems.
1 parent 88a5362 commit fca9692

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
- name: "Test with Coverage"
3737
run: npm run test:coverage:ci
3838

39-
- name: "Upload Coverage Report"
39+
- name: "Upload Coverage Report (Ubuntu only)"
40+
if: matrix.os == 'ubuntu-latest'
4041
uses: actions/upload-artifact@v4
4142
with:
42-
name: coverage-report-${{ matrix.os }}
43+
name: coverage-report
4344
path: coverage/
4445
retention-days: 30
4546

46-
- name: "Upload coverage reports to Codecov"
47+
- name: "Upload coverage reports to Codecov (Ubuntu only)"
48+
if: matrix.os == 'ubuntu-latest'
4749
uses: codecov/codecov-action@v5
4850
with:
4951
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)