File tree Expand file tree Collapse file tree 1 file changed +42
-10
lines changed Expand file tree Collapse file tree 1 file changed +42
-10
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
test :
9
- runs-on : ubuntu-latest
9
+ runs-on : ubuntu-20.04
10
10
strategy :
11
11
matrix :
12
12
name :
28
28
- Node.js 13.x
29
29
- Node.js 14.x
30
30
- Node.js 15.x
31
+ - Node.js 16.x
32
+ - Node.js 17.x
33
+ - Node.js 18.x
34
+ - Node.js 19.x
35
+ - Node.js 20.x
36
+ - Node.js 21.x
31
37
32
38
include :
33
39
- name : Node.js 0.8
@@ -73,32 +79,49 @@ jobs:
73
79
74
80
- name : Node.js 8.x
75
81
node-version : " 8.17"
76
- npm-i : mocha@7.2.0
82
+ npm-i : mocha@7.2.0 nyc@14.1.1
77
83
78
84
- name : Node.js 9.x
79
85
node-version : " 9.11"
80
- npm-i : mocha@7.2.0
86
+ npm-i : mocha@7.2.0 nyc@14.1.1
81
87
82
88
- name : Node.js 10.x
83
- node-version : " 10.23"
89
+ node-version : " 10.24"
90
+ npm-i : mocha@8.4.0
84
91
85
92
- name : Node.js 11.x
86
93
node-version : " 11.15"
94
+ npm-i : mocha@8.4.0
87
95
88
96
- name : Node.js 12.x
89
- node-version : " 12.20 "
97
+ node-version : " 12.22 "
90
98
91
99
- name : Node.js 13.x
92
100
node-version : " 13.14"
93
101
94
102
- name : Node.js 14.x
95
- node-version : " 14.15 "
103
+ node-version : " 14.18 "
96
104
97
105
- name : Node.js 15.x
98
- node-version : " 15.5 "
106
+ node-version : " 15.14 "
99
107
100
108
- name : Node.js 16.x
101
- node-version : " 16.2"
109
+ node-version : " 16.13"
110
+
111
+ - name : Node.js 17.x
112
+ node-version : " 17.2"
113
+
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"
102
125
103
126
steps :
104
127
- uses : actions/checkout@v2
@@ -107,13 +130,21 @@ jobs:
107
130
shell : bash -eo pipefail -l {0}
108
131
run : |
109
132
nvm install --default ${{ matrix.node-version }}
110
- if [[ "${{ matrix.node-version }}" == 0.* ]]; then
133
+ if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
134
+ nvm install --alias=npm 0.10
135
+ nvm use ${{ matrix.node-version }}
136
+ sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
111
137
npm config set strict-ssl false
112
138
fi
113
139
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
114
140
115
141
- name : Configure npm
116
- run : npm config set shrinkwrap false
142
+ run : |
143
+ if [[ "$(npm config get package-lock)" == "true" ]]; then
144
+ npm config set package-lock false
145
+ else
146
+ npm config set shrinkwrap false
147
+ fi
117
148
118
149
- name : Remove non-test npm modules
119
150
run : npm rm --silent --save-dev csv-parse raw-body stream-to-array
@@ -180,3 +211,4 @@ jobs:
180
211
with :
181
212
github-token : ${{ secrets.github_token }}
182
213
parallel-finished : true
214
+
You can’t perform that action at this time.
0 commit comments