-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support for EOL Node versions <14 (#376)
* Remove support for EOL Node versions <14 * Add GitHub Actions test workflow, remove Travis CI references * Upgrade tap-spec to prevent throwing exit code on npm test
- Loading branch information
1 parent
1cbdffc
commit 7c16709
Showing
7 changed files
with
880 additions
and
5,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x, 19.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
function isNodeLT(tar) { | ||
tar = (Array.isArray(tar) ? tar : tar.split('.')).map(Number); | ||
let i=0, src=process.versions.node.split('.').map(Number); | ||
for (; i < tar.length; i++) { | ||
if (src[i] > tar[i]) return false; | ||
if (tar[i] > src[i]) return true; | ||
} | ||
return false; | ||
} | ||
|
||
module.exports = | ||
isNodeLT('8.6.0') | ||
? require('./dist/index.js') | ||
: require('./lib/index.js'); | ||
module.exports = require('./lib/index.js'); |
Oops, something went wrong.