Skip to content

Commit

Permalink
Add experimental flag for Node 14 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbbdev committed Jul 15, 2023
1 parent 75b27ab commit 438248a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [14, 16, 18, 20]

steps:
- name: Clone repository
Expand All @@ -23,14 +23,20 @@ jobs:
cache: 'npm'

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

- name: Install dependencies
run: npm ci

- name: Run tests
if: ${{ matrix.node-version > 14 }}
run: npm run coverage

- name: Run tests
if: ${{ matrix.node-version == 14 }}
run: npm run coverage -- -- -n--experimental-abortcontroller

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
},
"scripts": {
"test": "mocha --exit",
"coverage": "nyc --reporter=lcov npm run test"
"coverage": "nyc --reporter=lcov npm test"
}
}

0 comments on commit 438248a

Please sign in to comment.