@@ -2,10 +2,13 @@ trigger:
2
2
- master
3
3
- next
4
4
5
+ variables :
6
+ npm_config_cache : $(Pipeline.Workspace)/.npm
7
+
5
8
jobs :
6
9
- job : Lint
7
10
pool :
8
- vmImage : ubuntu-16.04
11
+ vmImage : ubuntu-latest
9
12
steps :
10
13
- task : NodeTool@0
11
14
inputs :
@@ -20,10 +23,12 @@ jobs:
20
23
node -v
21
24
npm -v
22
25
displayName: 'Print versions'
23
- - task : Npm @1
26
+ - task : CacheBeta @1
24
27
inputs :
25
- command : custom
26
- customCommand : ci
28
+ key : npm | $(Agent.OS) | package-lock.json
29
+ path : $(npm_config_cache)
30
+ displayName : ' Cache npm'
31
+ - script : npm ci
27
32
displayName : ' Install dependencies'
28
33
- script : npm run lint
29
34
displayName : ' Run lint'
@@ -34,10 +39,13 @@ jobs:
34
39
35
40
- job : Linux
36
41
pool :
37
- vmImage : ubuntu-16.04
42
+ vmImage : ubuntu-latest
38
43
strategy :
39
- maxParallel : 5
44
+ maxParallel : 6
40
45
matrix :
46
+ node-13 :
47
+ node_version : ^13.0.0
48
+ webpack_version : latest
41
49
node-12 :
42
50
node_version : ^12.0.0
43
51
webpack_version : latest
50
58
node-6 :
51
59
node_version : ^6.9.0
52
60
webpack_version : latest
61
+ node-10-canary :
62
+ node_version : ^10.13.0
63
+ webpack_version : next
53
64
steps :
54
65
- task : NodeTool@0
55
66
inputs :
@@ -64,14 +75,16 @@ jobs:
64
75
node -v
65
76
npm -v
66
77
displayName: 'Print versions'
67
- - task : Npm @1
78
+ - task : CacheBeta @1
68
79
inputs :
69
- command : custom
70
- customCommand : ci
80
+ key : npm | $(Agent.OS) | package-lock.json
81
+ path : $(npm_config_cache)
82
+ displayName : ' Cache npm'
83
+ - script : npm ci
71
84
displayName : ' Install dependencies'
72
85
- script : npm i webpack@$(webpack_version)
73
86
displayName : ' Install "webpack@$(webpack_version)"'
74
- - script : npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
87
+ - script : npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
75
88
displayName : ' Run tests with coverage'
76
89
- task : PublishTestResults@2
77
90
inputs :
@@ -85,10 +98,13 @@ jobs:
85
98
86
99
- job : macOS
87
100
pool :
88
- vmImage : macOS-10.14
101
+ vmImage : macOS-latest
89
102
strategy :
90
- maxParallel : 5
103
+ maxParallel : 6
91
104
matrix :
105
+ node-13 :
106
+ node_version : ^13.0.0
107
+ webpack_version : latest
92
108
node-12 :
93
109
node_version : ^12.0.0
94
110
webpack_version : latest
@@ -101,6 +117,9 @@ jobs:
101
117
node-6 :
102
118
node_version : ^6.9.0
103
119
webpack_version : latest
120
+ node-10-canary :
121
+ node_version : ^10.13.0
122
+ webpack_version : next
104
123
steps :
105
124
- task : NodeTool@0
106
125
inputs :
@@ -115,14 +134,16 @@ jobs:
115
134
node -v
116
135
npm -v
117
136
displayName: 'Print versions'
118
- - task : Npm @1
137
+ - task : CacheBeta @1
119
138
inputs :
120
- command : custom
121
- customCommand : ci
139
+ key : npm | $(Agent.OS) | package-lock.json
140
+ path : $(npm_config_cache)
141
+ displayName : ' Cache npm'
142
+ - script : npm ci
122
143
displayName : ' Install dependencies'
123
144
- script : npm i webpack@$(webpack_version)
124
145
displayName : ' Install "webpack@$(webpack_version)"'
125
- - script : npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
146
+ - script : npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
126
147
displayName : ' Run tests with coverage'
127
148
- task : PublishTestResults@2
128
149
inputs :
@@ -136,10 +157,13 @@ jobs:
136
157
137
158
- job : Windows
138
159
pool :
139
- vmImage : windows-2019
160
+ vmImage : windows-latest
140
161
strategy :
141
- maxParallel : 5
162
+ maxParallel : 6
142
163
matrix :
164
+ node-13 :
165
+ node_version : ^13.0.0
166
+ webpack_version : latest
143
167
node-12 :
144
168
node_version : ^12.0.0
145
169
webpack_version : latest
@@ -152,6 +176,9 @@ jobs:
152
176
node-6 :
153
177
node_version : ^6.9.0
154
178
webpack_version : latest
179
+ node-10-canary :
180
+ node_version : ^10.13.0
181
+ webpack_version : next
155
182
steps :
156
183
- script : ' git config --global core.autocrlf input'
157
184
displayName : ' Config git core.autocrlf'
@@ -169,10 +196,12 @@ jobs:
169
196
node -v
170
197
npm -v
171
198
displayName: 'Print versions'
172
- - task : Npm @1
199
+ - task : CacheBeta @1
173
200
inputs :
174
- command : custom
175
- customCommand : ci
201
+ key : npm | $(Agent.OS) | package-lock.json
202
+ path : $(npm_config_cache)
203
+ displayName : ' Cache npm'
204
+ - script : npm ci
176
205
displayName : ' Install dependencies'
177
206
- script : npm i webpack@$(webpack_version)
178
207
displayName : ' Install "webpack@$(webpack_version)"'
0 commit comments