1
1
name : ci
2
2
3
3
on :
4
- - pull_request
5
- - push
4
+ - pull_request
5
+ - push
6
6
7
7
jobs :
8
8
test :
@@ -11,132 +11,137 @@ jobs:
11
11
fail-fast : false
12
12
matrix :
13
13
name :
14
- - Node.js 0.10
15
- - Node.js 0.12
16
- - io.js 1.x
17
- - io.js 2.x
18
- - io.js 3.x
19
- - Node.js 4.x
20
- - Node.js 5.x
21
- - Node.js 6.x
22
- - Node.js 7.x
23
- - Node.js 8.x
24
- - Node.js 9.x
25
- - Node.js 10.x
26
- - Node.js 11.x
27
- - Node.js 12.x
28
- - Node.js 13.x
29
- - Node.js 14.x
30
- - Node.js 15.x
14
+ - Node.js 0.10
15
+ - Node.js 0.12
16
+ - io.js 1.x
17
+ - io.js 2.x
18
+ - io.js 3.x
19
+ - Node.js 4.x
20
+ - Node.js 5.x
21
+ - Node.js 6.x
22
+ - Node.js 7.x
23
+ - Node.js 8.x
24
+ - Node.js 9.x
25
+ - Node.js 10.x
26
+ - Node.js 11.x
27
+ - Node.js 12.x
28
+ - Node.js 13.x
29
+ - Node.js 14.x
30
+ - Node.js 15.x
31
31
32
32
include :
33
- - name : Node.js 0.10
34
- node-version : " 0.10"
35
-
33
+ - name : Node.js 0.10
34
+ node-version : " 0.10"
35
+
36
36
37
- - name : Node.js 0.12
38
- node-version : " 0.12"
39
-
37
+ - name : Node.js 0.12
38
+ node-version : " 0.12"
39
+
40
40
41
- - name : io.js 1.x
42
- node-version : " 1.8"
43
-
41
+ - name : io.js 1.x
42
+ node-version : " 1.8"
43
+
44
44
45
- - name : io.js 2.x
46
- node-version : " 2.5"
47
-
45
+ - name : io.js 2.x
46
+ node-version : " 2.5"
47
+
48
48
49
- - name : io.js 3.x
50
- node-version : " 3.3"
51
-
49
+ - name : io.js 3.x
50
+ node-version : " 3.3"
51
+
52
52
53
- - name : Node.js 4.x
54
- node-version : " 4.9"
55
-
53
+ - name : Node.js 4.x
54
+ node-version : " 4.9"
55
+
56
56
57
- - name : Node.js 5.x
58
- node-version : " 5.12"
59
-
57
+ - name : Node.js 5.x
58
+ node-version : " 5.12"
59
+
60
60
61
- - name : Node.js 6.x
62
- node-version : " 6.17"
63
-
61
+ - name : Node.js 6.x
62
+ node-version : " 6.17"
63
+
64
64
65
- - name : Node.js 7.x
66
- node-version : " 7.10"
67
-
65
+ - name : Node.js 7.x
66
+ node-version : " 7.10"
67
+
68
68
69
- - name : Node.js 8.x
70
- node-version : " 8.17"
71
-
69
+ - name : Node.js 8.x
70
+ node-version : " 8.17"
71
+
72
72
73
- - name : Node.js 9.x
74
- node-version : " 9.11"
75
-
73
+ - name : Node.js 9.x
74
+ node-version : " 9.11"
75
+
76
76
77
- - name : Node.js 10.x
78
- node-version : " 10.24"
79
-
77
+ - name : Node.js 10.x
78
+ node-version : " 10.24"
79
+
80
80
81
- - name : Node.js 11.x
82
- node-version : " 11.15"
83
-
81
+ - name : Node.js 11.x
82
+ node-version : " 11.15"
83
+
84
84
85
- - name : Node.js 12.x
86
- node-version : " 12.22"
85
+ - name : Node.js 12.x
86
+ node-version : " 12.22"
87
87
88
- - name : Node.js 13.x
89
- node-version : " 13.14"
88
+ - name : Node.js 13.x
89
+ node-version : " 13.14"
90
90
91
- - name : Node.js 14.x
92
- node-version : " 14.18"
91
+ - name : Node.js 14.x
92
+ node-version : " 14.18"
93
93
94
- - name : Node.js 15.x
95
- node-version : " 15.14"
94
+ - name : Node.js 15.x
95
+ node-version : " 15.14"
96
96
97
97
steps :
98
- - uses : actions/checkout@v2
99
-
100
- - name : Install Node.js ${{ matrix.node-version }}
101
- shell : bash -eo pipefail -l {0}
102
- run : |
103
- nvm install --default ${{ matrix.node-version }}
104
- dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
105
-
106
- - name : Configure npm
107
- run : npm config set shrinkwrap false
108
-
109
- - name : Install npm module(s) ${{ matrix.npm-i }}
110
- run : npm install --save-dev ${{ matrix.npm-i }}
111
- if : matrix.npm-i != ''
112
-
113
- - name : Setup Node.js version-specific dependencies
114
- shell : bash
115
- run : |
116
- # eslint for linting
117
- # - remove on Node.js < 10
118
- if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
119
- node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
120
- grep -E '^eslint(-|$)' | \
121
- sort -r | \
122
- xargs -n1 npm rm --silent --save-dev
123
- fi
124
-
125
- - name : Install Node.js dependencies
126
- run : npm install
127
-
128
- - name : List environment
129
- id : list_env
130
- shell : bash
131
- run : |
132
- echo "node@$(node -v)"
133
- echo "npm@$(npm -v)"
134
- npm -s ls ||:
135
- (npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }'
136
-
137
- - name : Run tests
138
- run : npm run test-ci
139
-
140
- - name : Lint code
141
- if : steps.list_env.outputs.eslint != ''
142
- run : npm run lint
98
+ - uses : actions/checkout@v3
99
+
100
+ - name : Install Python 2.x
101
+ uses : actions/setup-python@v4
102
+ with :
103
+ python-version : " 2.x"
104
+
105
+ - name : Install Node.js ${{ matrix.node-version }}
106
+ shell : bash -eo pipefail -l {0}
107
+ run : |
108
+ nvm install --default ${{ matrix.node-version }}
109
+ dirname "$(nvm which ${{ matrix.node-version }})" >>"$GITHUB_PATH"
110
+
111
+ - name : Configure npm
112
+ run : npm config set shrinkwrap false
113
+
114
+ - name : Install npm module(s) ${{ matrix.npm-i }}
115
+ run : npm install --save-dev ${{ matrix.npm-i }}
116
+ if : matrix.npm-i != ''
117
+
118
+ - name : Setup Node.js version-specific dependencies
119
+ shell : bash
120
+ run : |
121
+ # eslint for linting
122
+ # - remove on Node.js < 10
123
+ if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
124
+ node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
125
+ grep -E '^eslint(-|$)' | \
126
+ sort -r | \
127
+ xargs -n1 npm rm --silent --save-dev
128
+ fi
129
+
130
+ - name : Install Node.js dependencies
131
+ run : npm install
132
+
133
+ - name : List environment
134
+ id : list_env
135
+ shell : bash
136
+ run : |
137
+ echo "node@$(node -v)"
138
+ echo "npm@$(npm -v)"
139
+ npm -s ls ||:
140
+ (npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }'
141
+
142
+ - name : Run tests
143
+ run : npm run test-ci
144
+
145
+ - name : Lint code
146
+ if : steps.list_env.outputs.eslint != ''
147
+ run : npm run lint
0 commit comments