Skip to content

Commit cd2c6a9

Browse files
authored
Merge branch 'jshttp:master' into add-ossf-scorecard
2 parents e2cf269 + 3f81df2 commit cd2c6a9

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

.github/workflows/ci.yml

+28-10
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
1212
name:
13-
- Node.js 0.6
1413
- Node.js 0.8
1514
- Node.js 0.10
1615
- Node.js 0.12
@@ -31,13 +30,12 @@ jobs:
3130
- Node.js 15.x
3231
- Node.js 16.x
3332
- Node.js 17.x
33+
- Node.js 18.x
34+
- Node.js 19.x
35+
- Node.js 20.x
36+
- Node.js 21.x
3437

3538
include:
36-
- name: Node.js 0.6
37-
node-version: "0.6"
38-
39-
npm-rm: nyc
40-
4139
- name: Node.js 0.8
4240
node-version: "0.8"
4341
@@ -81,11 +79,11 @@ jobs:
8179

8280
- name: Node.js 8.x
8381
node-version: "8.17"
84-
82+
8583

8684
- name: Node.js 9.x
8785
node-version: "9.11"
88-
86+
8987

9088
- name: Node.js 10.x
9189
node-version: "10.24"
@@ -113,6 +111,18 @@ jobs:
113111
- name: Node.js 17.x
114112
node-version: "17.4"
115113

114+
- name: Node.js 18.x
115+
node-version: "18.20"
116+
117+
- name: Node.js 19.x
118+
node-version: "19.9"
119+
120+
- name: Node.js 20.x
121+
node-version: "20.12"
122+
123+
- name: Node.js 21.x
124+
node-version: "21.7"
125+
116126
steps:
117127
- uses: actions/checkout@v2
118128

@@ -139,7 +149,15 @@ jobs:
139149
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
140150
141151
- name: Configure npm
142-
run: npm config set shrinkwrap false
152+
run: |
153+
if [[ "$(npm config get package-lock)" == "true" ]]; then
154+
npm config set package-lock false
155+
else
156+
npm config set shrinkwrap false
157+
fi
158+
159+
- name: Remove non-test npm modules
160+
run: npm rm --silent --save-dev csv-parse raw-body stream-to-array
143161

144162
- name: Remove npm module(s) ${{ matrix.npm-rm }}
145163
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}

0 commit comments

Comments
 (0)