@@ -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,23 +39,22 @@ jobs:
34
39
35
40
- job : Linux
36
41
pool :
37
- vmImage : ubuntu-16.04
42
+ vmImage : ubuntu-latest
38
43
strategy :
39
44
maxParallel : 4
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
44
52
node-10 :
45
53
node_version : ^10.13.0
46
54
webpack_version : latest
47
- node-8 :
48
- node_version : ^8.9.0
49
- webpack_version : latest
50
- node-8-canary :
51
- node_version : ^8.9.0
55
+ node-10-canary :
56
+ node_version : ^10.13.0
52
57
webpack_version : next
53
- continue_on_error : true
54
58
steps :
55
59
- task : NodeTool@0
56
60
inputs :
@@ -65,10 +69,12 @@ jobs:
65
69
node -v
66
70
npm -v
67
71
displayName: 'Print versions'
68
- - task : Npm @1
72
+ - task : CacheBeta @1
69
73
inputs :
70
- command : custom
71
- customCommand : ci
74
+ key : npm | $(Agent.OS) | package-lock.json
75
+ path : $(npm_config_cache)
76
+ displayName : ' Cache npm'
77
+ - script : npm ci
72
78
displayName : ' Install dependencies'
73
79
- script : npm i webpack@$(webpack_version)
74
80
displayName : ' Install "webpack@$(webpack_version)"'
@@ -86,23 +92,22 @@ jobs:
86
92
87
93
- job : macOS
88
94
pool :
89
- vmImage : macOS-10.14
95
+ vmImage : macOS-latest
90
96
strategy :
91
97
maxParallel : 4
92
98
matrix :
99
+ node-13 :
100
+ node_version : ^13.0.0
101
+ webpack_version : latest
93
102
node-12 :
94
103
node_version : ^12.0.0
95
104
webpack_version : latest
96
105
node-10 :
97
106
node_version : ^10.13.0
98
107
webpack_version : latest
99
- node-8 :
100
- node_version : ^8.9.0
101
- webpack_version : latest
102
- node-8-canary :
103
- node_version : ^8.9.0
108
+ node-10-canary :
109
+ node_version : ^10.13.0
104
110
webpack_version : next
105
- continue_on_error : true
106
111
steps :
107
112
- task : NodeTool@0
108
113
inputs :
@@ -117,10 +122,12 @@ jobs:
117
122
node -v
118
123
npm -v
119
124
displayName: 'Print versions'
120
- - task : Npm @1
125
+ - task : CacheBeta @1
121
126
inputs :
122
- command : custom
123
- customCommand : ci
127
+ key : npm | $(Agent.OS) | package-lock.json
128
+ path : $(npm_config_cache)
129
+ displayName : ' Cache npm'
130
+ - script : npm ci
124
131
displayName : ' Install dependencies'
125
132
- script : npm i webpack@$(webpack_version)
126
133
displayName : ' Install "webpack@$(webpack_version)"'
@@ -138,23 +145,22 @@ jobs:
138
145
139
146
- job : Windows
140
147
pool :
141
- vmImage : windows-2019
148
+ vmImage : windows-latest
142
149
strategy :
143
150
maxParallel : 4
144
151
matrix :
152
+ node-13 :
153
+ node_version : ^13.0.0
154
+ webpack_version : latest
145
155
node-12 :
146
156
node_version : ^12.0.0
147
157
webpack_version : latest
148
158
node-10 :
149
159
node_version : ^10.13.0
150
160
webpack_version : latest
151
- node-8 :
152
- node_version : ^8.9.0
153
- webpack_version : latest
154
- node-8-canary :
155
- node_version : ^8.9.0
161
+ node-10-canary :
162
+ node_version : ^10.13.0
156
163
webpack_version : next
157
- continue_on_error : true
158
164
steps :
159
165
- script : ' git config --global core.autocrlf input'
160
166
displayName : ' Config git core.autocrlf'
@@ -172,10 +178,12 @@ jobs:
172
178
node -v
173
179
npm -v
174
180
displayName: 'Print versions'
175
- - task : Npm @1
181
+ - task : CacheBeta @1
176
182
inputs :
177
- command : custom
178
- customCommand : ci
183
+ key : npm | $(Agent.OS) | package-lock.json
184
+ path : $(npm_config_cache)
185
+ displayName : ' Cache npm'
186
+ - script : npm ci
179
187
displayName : ' Install dependencies'
180
188
- script : npm i webpack@$(webpack_version)
181
189
displayName : ' Install "webpack@$(webpack_version)"'
0 commit comments