Skip to content

Commit 438248a

Browse files
committed
Add experimental flag for Node 14 tests
1 parent 75b27ab commit 438248a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
node-version: [14.x, 16.x, 18.x, 20.x]
13+
node-version: [14, 16, 18, 20]
1414

1515
steps:
1616
- name: Clone repository
@@ -23,14 +23,20 @@ jobs:
2323
cache: 'npm'
2424

2525
- name: Update npm
26+
if: ${{ matrix.node-version == 14 }}
2627
run: npm install -g npm@latest
2728

2829
- name: Install dependencies
2930
run: npm ci
3031

3132
- name: Run tests
33+
if: ${{ matrix.node-version > 14 }}
3234
run: npm run coverage
3335

36+
- name: Run tests
37+
if: ${{ matrix.node-version == 14 }}
38+
run: npm run coverage -- -- -n--experimental-abortcontroller
39+
3440
- name: Coveralls
3541
uses: coverallsapp/github-action@v2
3642
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
},
3535
"scripts": {
3636
"test": "mocha --exit",
37-
"coverage": "nyc --reporter=lcov npm run test"
37+
"coverage": "nyc --reporter=lcov npm test"
3838
}
3939
}

0 commit comments

Comments
 (0)