11name : ci
22
33on :
4- - pull_request
5- - push
4+ push :
5+ branches :
6+ - master
7+ - ' 2.x'
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
3220 - Node.js 18.x
33- - Node.js 19.x
21+ - Node.js 20.x
22+ - Node.js 22.x
3423
3524 include :
36- - name : Node.js 0.10
37- node-version : " 0.10"
38- 39-
40- - name : Node.js 0.12
41- node-version : " 0.12"
42- 43-
44- - name : io.js 1.x
45- node-version : " 1.8"
46- 47-
48- - name : io.js 2.x
49- node-version : " 2.5"
50- 51-
52- - name : io.js 3.x
53- node-version : " 3.3"
54- 55-
56- - name : Node.js 4.x
57- node-version : " 4.9"
58- 59-
60- - name : Node.js 5.x
61- node-version : " 5.12"
62- 63-
64- - name : Node.js 6.x
65- node-version : " 6.17"
66- 67-
68- - name : Node.js 7.x
69- node-version : " 7.10"
70- 71-
72- - name : Node.js 8.x
73- node-version : " 8.17"
74- 75-
76- - name : Node.js 9.x
77- node-version : " 9.11"
78- 79-
80- - name : Node.js 10.x
81- node-version : " 10.24"
82- 83-
84- - name : Node.js 11.x
85- node-version : " 11.15"
86- 87-
88- - name : Node.js 12.x
89- node-version : " 12.22"
90- 91-
92- - name : Node.js 13.x
93- node-version : " 13.14"
94- 95-
96- - name : Node.js 14.x
97- node-version : " 14.21"
98-
99- - name : Node.js 15.x
100- node-version : " 15.14"
101-
102- - name : Node.js 16.x
103- node-version : " 16.19"
104-
105- - name : Node.js 17.x
106- node-version : " 17.9"
107-
10825 - name : Node.js 18.x
109- node-version : " 18.14 "
26+ node-version : " 18"
11027
111- - name : Node.js 19.x
112- node-version : " 19.7"
28+ - name : Node.js 20.x
29+ node-version : " 20"
30+
31+ - name : Node.js 22.x
32+ node-version : " 22"
11333
11434 steps :
115- - uses : actions/checkout@v3
35+ - uses : actions/checkout@v4
11636
11737 - name : Install Node.js ${{ matrix.node-version }}
11838 shell : bash -eo pipefail -l {0}
@@ -128,22 +48,6 @@ jobs:
12848 npm config set shrinkwrap false
12949 fi
13050
131- - name : Install npm module(s) ${{ matrix.npm-i }}
132- run : npm install --save-dev ${{ matrix.npm-i }}
133- if : matrix.npm-i != ''
134-
135- - name : Setup Node.js version-specific dependencies
136- shell : bash
137- run : |
138- # eslint for linting
139- # - remove on Node.js < 12
140- if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then
141- node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
142- grep -E '^eslint(-|$)' | \
143- sort -r | \
144- xargs -n1 npm rm --silent --save-dev
145- fi
146-
14751 - name : Install Node.js dependencies
14852 run : npm install
14953
18589 needs : test
18690 runs-on : ubuntu-latest
18791 steps :
188- - uses : actions/checkout@v3
92+ - uses : actions/checkout@v4
18993
19094 - name : Install lcov
19195 shell : bash
0 commit comments