Skip to content

Commit 597e3f8

Browse files
committed
Disable coverage report for windows tests on node > 6
nyc < 14.0 is broken on node > 6
1 parent 5187cc5 commit 597e3f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/test-windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@ jobs:
3030
npm install --only=dev
3131
npm list --dev --depth=0
3232
- name: Run tests
33+
if: ${{ matrix.node <= 6 }}
3334
run: npm run test
35+
- name: Run tests
36+
if: ${{ !(matrix.node <= 6) }}
37+
run: npm run test:windows
3438
#- name: Run type checking
3539
# run: npm run types
3640
- name: Run benchmark
3741
run: |
3842
npm run bench
3943
- name: Upload coverage to Codecov
44+
if: ${{ matrix.node <= 6 }}
4045
uses: codecov/codecov-action@v2

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"release": "np",
4848
"lint": "xo",
4949
"test": "nyc ava -m \"!*benchmark*\"",
50+
"test:windows": "ava -m \"!*benchmark*\"",
5051
"types": "tsd",
5152
"bench": "ava -m \"*benchmark*\""
5253
},

0 commit comments

Comments
 (0)