forked from expressjs/express
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adopt Node@18 as the minimum supported version
- Loading branch information
1 parent
cd7d79f
commit e9bcdd3
Showing
2 changed files
with
0 additions
and
142 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 |
---|---|---|
|
@@ -11,83 +11,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
name: | ||
- Node.js 4.0 | ||
- Node.js 4.x | ||
- Node.js 5.x | ||
- Node.js 6.x | ||
- Node.js 7.x | ||
- Node.js 8.x | ||
- Node.js 9.x | ||
- Node.js 10.x | ||
- Node.js 11.x | ||
- Node.js 12.x | ||
- Node.js 13.x | ||
- Node.js 14.x | ||
- Node.js 15.x | ||
- Node.js 16.x | ||
- Node.js 17.x | ||
- Node.js 18.x | ||
- Node.js 19.x | ||
- Node.js 20.x | ||
- Node.js 21.x | ||
|
||
include: | ||
- name: Node.js 4.0 | ||
node-version: "4.0" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 4.x | ||
node-version: "4.9" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 5.x | ||
node-version: "5.12" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 6.x | ||
node-version: "6.17" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 7.x | ||
node-version: "7.10" | ||
npm-i: [email protected] [email protected] [email protected] | ||
|
||
- name: Node.js 8.x | ||
node-version: "8.17" | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 9.x | ||
node-version: "9.11" | ||
npm-i: [email protected] [email protected] | ||
|
||
- name: Node.js 10.x | ||
node-version: "10.24" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 11.x | ||
node-version: "11.15" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 12.x | ||
node-version: "12.22" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 13.x | ||
node-version: "13.14" | ||
npm-i: [email protected] | ||
|
||
- name: Node.js 14.x | ||
node-version: "14.20" | ||
|
||
- name: Node.js 15.x | ||
node-version: "15.14" | ||
|
||
- name: Node.js 16.x | ||
node-version: "16.20" | ||
|
||
- name: Node.js 17.x | ||
node-version: "17.9" | ||
|
||
- name: Node.js 18.x | ||
node-version: "18.19" | ||
|
||
|
@@ -125,18 +54,6 @@ jobs: | |
- name: Remove non-test dependencies | ||
run: npm rm --silent --save-dev connect-redis | ||
|
||
- name: Setup Node.js version-specific dependencies | ||
shell: bash | ||
run: | | ||
# eslint for linting | ||
# - remove on Node.js < 12 | ||
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then | ||
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ | ||
grep -E '^eslint(-|$)' | \ | ||
sort -r | \ | ||
xargs -n1 npm rm --silent --save-dev | ||
fi | ||
- name: Install Node.js dependencies | ||
run: npm install | ||
|
||
|
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,19 +1,5 @@ | ||
environment: | ||
matrix: | ||
- nodejs_version: "4.9" | ||
- nodejs_version: "5.12" | ||
- nodejs_version: "6.17" | ||
- nodejs_version: "7.10" | ||
- nodejs_version: "8.17" | ||
- nodejs_version: "9.11" | ||
- nodejs_version: "10.24" | ||
- nodejs_version: "11.15" | ||
- nodejs_version: "12.22" | ||
- nodejs_version: "13.14" | ||
- nodejs_version: "14.20" | ||
- nodejs_version: "15.14" | ||
- nodejs_version: "16.20" | ||
- nodejs_version: "17.9" | ||
- nodejs_version: "18.19" | ||
- nodejs_version: "19.9" | ||
- nodejs_version: "20.11" | ||
|
@@ -41,51 +27,6 @@ install: | |
cmd.exe /c "node -pe `"Object.keys(require('./package').devDependencies).join('\n')`"" | ` | ||
sls "^eslint(-|$)" | ` | ||
%{ npm rm --silent --save-dev $_ } | ||
# Setup Node.js version-specific dependencies | ||
- ps: | | ||
# mocha for testing | ||
# - use 5.x for Node.js < 6 | ||
# - use 6.x for Node.js < 8 | ||
# - use 7.x for Node.js < 10 | ||
# - use 8.x for Node.js < 12 | ||
# - use 9.x for Node.js < 14 | ||
if ([int]$env:nodejs_version.split(".")[0] -lt 4) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 10) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 12) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 14) { | ||
npm install --silent --save-dev [email protected] | ||
} | ||
- ps: | | ||
# nyc for test coverage | ||
# - use 10.3.2 for Node.js < 4 | ||
# - use 11.9.0 for Node.js < 6 | ||
# - use 14.1.1 for Node.js < 10 | ||
if ([int]$env:nodejs_version.split(".")[0] -lt 4) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 10) { | ||
npm install --silent --save-dev [email protected] | ||
} | ||
- ps: | | ||
# supertest for http calls | ||
# - use 2.0.0 for Node.js < 4 | ||
# - use 3.4.2 for Node.js < 7 | ||
# - use 6.1.6 for Node.js < 8 | ||
if ([int]$env:nodejs_version.split(".")[0] -lt 4) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 7) { | ||
npm install --silent --save-dev [email protected] | ||
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) { | ||
npm install --silent --save-dev [email protected] | ||
} | ||
# Update Node.js modules | ||
- ps: | | ||
# Prune & rebuild node_modules | ||
|