Skip to content

Commit cb577d9

Browse files
authored
chore(ci): skip nyc for Node < 18
1 parent 2941923 commit cb577d9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ jobs:
3131
node-version: ${{ matrix.nodejs }}
3232

3333
- name: Install
34-
run: |
35-
npm install
36-
npm install -g nyc
34+
run: npm install
3735

3836
- name: Type Check
3937
run: npm run types
4038

39+
- name: Test
40+
if: matrix.nodejs < 18
41+
run: npm test
42+
4143
- name: Test w/ Coverage
42-
run: nyc --include=src npm test
44+
if: matrix.nodejs >= 18
45+
run: |
46+
npm install -g nyc
47+
nyc --include=src npm test
4348
4449
- name: Compile
4550
if: matrix.nodejs >= 18

0 commit comments

Comments
 (0)