@@ -16,124 +16,27 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
name :
19
- - Node.js 0.8
20
- - Node.js 0.10
21
- - Node.js 0.12
22
- - io.js 1.x
23
- - io.js 2.x
24
- - io.js 3.x
25
- - Node.js 4.x
26
- - Node.js 5.x
27
- - Node.js 6.x
28
- - Node.js 7.x
29
- - Node.js 8.x
30
- - Node.js 9.x
31
- - Node.js 10.x
32
- - Node.js 11.x
33
- - Node.js 12.x
34
- - Node.js 13.x
35
- - Node.js 14.x
36
- - Node.js 15.x
37
- - Node.js 16.x
38
- - Node.js 17.x
39
19
- Node.js 18.x
40
20
- Node.js 19.x
41
21
- Node.js 20.x
42
22
- Node.js 21.x
43
23
- Node.js 22.x
44
24
45
25
include :
46
- - name : Node.js 0.8
47
- node-version : " 0.8"
48
-
49
- npm-rm : nyc
50
-
51
- - name : Node.js 0.10
52
- node-version : " 0.10"
53
-
54
-
55
- - name : Node.js 0.12
56
- node-version : " 0.12"
57
-
58
-
59
- - name : io.js 1.x
60
- node-version : " 1.8"
61
-
62
-
63
- - name : io.js 2.x
64
- node-version : " 2.5"
65
-
66
-
67
- - name : io.js 3.x
68
- node-version : " 3.3"
69
-
70
-
71
- - name : Node.js 4.x
72
- node-version : " 4.9"
73
-
74
-
75
- - name : Node.js 5.x
76
- node-version : " 5.12"
77
-
78
-
79
- - name : Node.js 6.x
80
- node-version : " 6.17"
81
-
82
-
83
- - name : Node.js 7.x
84
- node-version : " 7.10"
85
-
86
-
87
- - name : Node.js 8.x
88
- node-version : " 8.16"
89
-
90
-
91
- - name : Node.js 9.x
92
- node-version : " 9.11"
93
-
94
-
95
- - name : Node.js 10.x
96
- node-version : " 10.24"
97
-
98
-
99
- - name : Node.js 11.x
100
- node-version : " 11.15"
101
-
102
-
103
- - name : Node.js 12.x
104
- node-version : " 12.22"
105
-
106
-
107
- - name : Node.js 13.x
108
- node-version : " 13.14"
109
-
110
-
111
- - name : Node.js 14.x
112
- node-version : " 14.20"
113
-
114
- - name : Node.js 15.x
115
- node-version : " 15.14"
116
-
117
- - name : Node.js 16.x
118
- node-version : " 16.16"
119
-
120
- - name : Node.js 17.x
121
- node-version : " 17.9"
122
-
123
26
- name : Node.js 18.x
124
- node-version : " 18.14 "
27
+ node-version : " 18"
125
28
126
29
- name : Node.js 19.x
127
- node-version : " 19.6 "
30
+ node-version : " 19"
128
31
129
32
- name : Node.js 20.x
130
- node-version : " 20.12 "
33
+ node-version : " 20"
131
34
132
35
- name : Node.js 21.x
133
- node-version : " 21.7 "
36
+ node-version : " 21"
134
37
135
38
- name : Node.js 22.x
136
- node-version : " 22.0 "
39
+ node-version : " 22"
137
40
138
41
steps :
139
42
- uses : actions/checkout@v4
@@ -142,12 +45,6 @@ jobs:
142
45
shell : bash -eo pipefail -l {0}
143
46
run : |
144
47
nvm install --default ${{ matrix.node-version }}
145
- if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
146
- nvm install --alias=npm 0.10
147
- nvm use ${{ matrix.node-version }}
148
- sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
149
- npm config set strict-ssl false
150
- fi
151
48
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
152
49
153
50
- name : Configure npm
@@ -158,26 +55,6 @@ jobs:
158
55
npm config set shrinkwrap false
159
56
fi
160
57
161
- - name : Remove npm module(s) ${{ matrix.npm-rm }}
162
- run : npm rm --silent --save-dev ${{ matrix.npm-rm }}
163
- if : matrix.npm-rm != ''
164
-
165
- - name : Install npm module(s) ${{ matrix.npm-i }}
166
- run : npm install --save-dev ${{ matrix.npm-i }}
167
- if : matrix.npm-i != ''
168
-
169
- - name : Setup Node.js version-specific dependencies
170
- shell : bash
171
- run : |
172
- # eslint for linting
173
- # - remove on Node.js < 10
174
- if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
175
- node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
176
- grep -E '^eslint(-|$)' | \
177
- sort -r | \
178
- xargs -n1 npm rm --silent --save-dev
179
- fi
180
-
181
58
- name : Install Node.js dependencies
182
59
run : npm install
183
60
0 commit comments