Skip to content

Commit f888bd0

Browse files
author
karanyede
committed
fix: Run coverage only on Node.js 20.x to avoid v8 coverage incompatibility with Node 18
1 parent 11d9e53 commit f888bd0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ jobs:
3737
- name: Run unit tests
3838
run: npm test
3939

40-
- name: Run tests with coverage
40+
- name: Run tests with coverage (Node 20.x only)
41+
if: matrix.node-version == '20.x'
4142
run: npm run test:coverage
4243

4344
- name: Upload coverage to Codecov
45+
if: matrix.node-version == '20.x'
4446
uses: codecov/codecov-action@v3
4547
with:
4648
files: ./coverage/coverage-final.json

0 commit comments

Comments
 (0)