@@ -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 : 4
44
+ maxParallel : 5
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-10-canary :
51
59
node_version : ^10.13.0
52
60
webpack_version : next
53
- continue_on_error : true
54
61
steps :
55
62
- task : NodeTool@0
56
63
inputs :
@@ -65,10 +72,12 @@ jobs:
65
72
node -v
66
73
npm -v
67
74
displayName: 'Print versions'
68
- - task : Npm @1
75
+ - task : CacheBeta @1
69
76
inputs :
70
- command : custom
71
- customCommand : ci
77
+ key : npm | $(Agent.OS) | package-lock.json
78
+ path : $(npm_config_cache)
79
+ displayName : ' Cache npm'
80
+ - script : npm ci
72
81
displayName : ' Install dependencies'
73
82
- script : npm i webpack@$(webpack_version)
74
83
displayName : ' Install "webpack@$(webpack_version)"'
@@ -86,10 +95,13 @@ jobs:
86
95
87
96
- job : macOS
88
97
pool :
89
- vmImage : macOS-10.14
98
+ vmImage : macOS-latest
90
99
strategy :
91
- maxParallel : 4
100
+ maxParallel : 5
92
101
matrix :
102
+ node-13 :
103
+ node_version : ^13.0.0
104
+ webpack_version : latest
93
105
node-12 :
94
106
node_version : ^12.0.0
95
107
webpack_version : latest
@@ -102,7 +114,6 @@ jobs:
102
114
node-10-canary :
103
115
node_version : ^10.13.0
104
116
webpack_version : next
105
- continue_on_error : true
106
117
steps :
107
118
- task : NodeTool@0
108
119
inputs :
@@ -117,10 +128,12 @@ jobs:
117
128
node -v
118
129
npm -v
119
130
displayName: 'Print versions'
120
- - task : Npm @1
131
+ - task : CacheBeta @1
121
132
inputs :
122
- command : custom
123
- customCommand : ci
133
+ key : npm | $(Agent.OS) | package-lock.json
134
+ path : $(npm_config_cache)
135
+ displayName : ' Cache npm'
136
+ - script : npm ci
124
137
displayName : ' Install dependencies'
125
138
- script : npm i webpack@$(webpack_version)
126
139
displayName : ' Install "webpack@$(webpack_version)"'
@@ -138,10 +151,13 @@ jobs:
138
151
139
152
- job : Windows
140
153
pool :
141
- vmImage : windows-2019
154
+ vmImage : windows-latest
142
155
strategy :
143
- maxParallel : 4
156
+ maxParallel : 5
144
157
matrix :
158
+ node-13 :
159
+ node_version : ^13.0.0
160
+ webpack_version : latest
145
161
node-12 :
146
162
node_version : ^12.0.0
147
163
webpack_version : latest
@@ -154,7 +170,6 @@ jobs:
154
170
node-10-canary :
155
171
node_version : ^10.13.0
156
172
webpack_version : next
157
- continue_on_error : true
158
173
steps :
159
174
- script : ' git config --global core.autocrlf input'
160
175
displayName : ' Config git core.autocrlf'
@@ -172,10 +187,12 @@ jobs:
172
187
node -v
173
188
npm -v
174
189
displayName: 'Print versions'
175
- - task : Npm @1
190
+ - task : CacheBeta @1
176
191
inputs :
177
- command : custom
178
- customCommand : ci
192
+ key : npm | $(Agent.OS) | package-lock.json
193
+ path : $(npm_config_cache)
194
+ displayName : ' Cache npm'
195
+ - script : npm ci
179
196
displayName : ' Install dependencies'
180
197
- script : npm i webpack@$(webpack_version)
181
198
displayName : ' Install "webpack@$(webpack_version)"'
0 commit comments