1
1
name : ci
2
2
3
3
on :
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'
6
13
7
14
jobs :
8
15
test :
9
16
runs-on : ubuntu-latest
10
17
strategy :
11
18
matrix :
12
19
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
32
20
- Node.js 18.x
33
- - Node.js 19.x
21
+ - Node.js 20.x
22
+ - Node.js 22.x
34
23
35
24
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
-
108
25
- name : Node.js 18.x
109
- node-version : " 18.14 "
26
+ node-version : " 18"
110
27
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"
113
33
114
34
steps :
115
- - uses : actions/checkout@v3
35
+ - uses : actions/checkout@v4
116
36
117
37
- name : Install Node.js ${{ matrix.node-version }}
118
38
shell : bash -eo pipefail -l {0}
@@ -128,22 +48,6 @@ jobs:
128
48
npm config set shrinkwrap false
129
49
fi
130
50
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
-
147
51
- name : Install Node.js dependencies
148
52
run : npm install
149
53
185
89
needs : test
186
90
runs-on : ubuntu-latest
187
91
steps :
188
- - uses : actions/checkout@v3
92
+ - uses : actions/checkout@v4
189
93
190
94
- name : Install lcov
191
95
shell : bash
0 commit comments