Skip to content

Commit fe264b4

Browse files
committed
fix(ci): skip --coverage flag for node 18
node 18 does not support v8 coverage provider well
1 parent 058d91a commit fe264b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- run: pnpm lint
4343
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 22 }}
4444
- run: pnpm build
45-
- run: pnpm vitest run --coverage
45+
- run: pnpm vitest run ${{ matrix.node != 18 && '--coverage' || '' }}
4646
- run: pnpm test:node-register
4747
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 22 }}
4848
- run: pnpm test:bun --coverage

0 commit comments

Comments
 (0)