11name : ci
22
33on :
4- - pull_request
5- - push
4+ push :
5+ branches :
6+ - master
7+ - ' 2.0'
8+ paths-ignore :
9+ - ' *.md'
10+ pull_request :
11+ paths-ignore :
12+ - ' *.md'
613
714jobs :
815 test :
916 runs-on : ubuntu-latest
1017 strategy :
1118 matrix :
1219 name :
13- - Node.js 0.10
14- - Node.js 0.12
15- - io.js 1.x
16- - io.js 2.x
17- - io.js 3.x
18- - Node.js 4.x
19- - Node.js 5.x
20- - Node.js 6.x
21- - Node.js 7.x
22- - Node.js 8.x
23- - Node.js 9.x
24- - Node.js 10.x
25- - Node.js 11.x
26- - Node.js 12.x
27- - Node.js 13.x
28- - Node.js 14.x
29- - Node.js 15.x
30- - Node.js 16.x
31- - Node.js 17.x
20+ - Node.js 18.x
21+ - Node.js 20.x
22+ - Node.js 22.x
3223
3324 include :
34- - name : Node.js 0.10
35- node-version : " 0.10"
36- 25+ - name : Node.js 18.x
26+ node-version : " 18"
3727
38- - name : Node.js 0.12
39- node-version : " 0.12"
40- 28+ - name : Node.js 20.x
29+ node-version : " 20"
4130
42- - name : io.js 1.x
43- node-version : " 1.8"
44- 45-
46- - name : io.js 2.x
47- node-version : " 2.5"
48- 49-
50- - name : io.js 3.x
51- node-version : " 3.3"
52- 53-
54- - name : Node.js 4.x
55- node-version : " 4.9"
56- 57-
58- - name : Node.js 5.x
59- node-version : " 5.12"
60- 61-
62- - name : Node.js 6.x
63- node-version : " 6.17"
64- 65-
66- - name : Node.js 7.x
67- node-version : " 7.10"
68- 69-
70- - name : Node.js 8.x
71- node-version : " 8.16"
72- 73-
74- - name : Node.js 9.x
75- node-version : " 9.11"
76- 77-
78- - name : Node.js 10.x
79- node-version : " 10.24"
80- 81-
82- - name : Node.js 11.x
83- node-version : " 11.15"
84- 85-
86- - name : Node.js 12.x
87- node-version : " 12.22"
88-
89- - name : Node.js 13.x
90- node-version : " 13.14"
91-
92- - name : Node.js 14.x
93- node-version : " 14.19"
94-
95- - name : Node.js 15.x
96- node-version : " 15.14"
97-
98- - name : Node.js 16.x
99- node-version : " 16.14"
100-
101- - name : Node.js 17.x
102- node-version : " 17.8"
31+ - name : Node.js 22.x
32+ node-version : " 22"
10333
10434 steps :
105- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v4
10636
10737 - name : Install Node.js ${{ matrix.node-version }}
10838 shell : bash -eo pipefail -l {0}
@@ -111,23 +41,7 @@ jobs:
11141 dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
11242
11343 - name : Configure npm
114- run : npm config set shrinkwrap false
115-
116- - name : Install npm module(s) ${{ matrix.npm-i }}
117- run : npm install --save-dev ${{ matrix.npm-i }}
118- if : matrix.npm-i != ''
119-
120- - name : Setup Node.js version-specific dependencies
121- shell : bash
122- run : |
123- # eslint for linting
124- # - remove on Node.js < 10
125- if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
126- node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
127- grep -E '^eslint(-|$)' | \
128- sort -r | \
129- xargs -n1 npm rm --silent --save-dev
130- fi
44+ run : npm config set package-lock false
13145
13246 - name : Install Node.js dependencies
13347 run : npm install
0 commit comments