@@ -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,26 +23,29 @@ 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'
30
35
- script : npm run security
31
36
displayName : ' Run NPM audit'
32
37
- script : ./node_modules/.bin/commitlint-azure-pipelines
33
38
displayName : ' Run lint commit message'
34
- - script : npm run validate:runtime
35
- displayName : ' Lint runtime code'
36
39
37
40
- job : Linux
38
41
pool :
39
- vmImage : ubuntu-16.04
42
+ vmImage : ubuntu-latest
40
43
strategy :
41
- maxParallel : 4
44
+ maxParallel : 5
42
45
matrix :
46
+ node-13 :
47
+ node_version : ^13.0.0
48
+ webpack_version : latest
43
49
node-12 :
44
50
node_version : ^12.0.0
45
51
webpack_version : latest
49
55
node-8 :
50
56
node_version : ^8.9.0
51
57
webpack_version : latest
52
- node-8 -canary :
53
- node_version : ^8.9 .0
58
+ node-10 -canary :
59
+ node_version : ^10.13 .0
54
60
webpack_version : next
55
61
continue_on_error : true
56
62
steps :
@@ -67,10 +73,12 @@ jobs:
67
73
node -v
68
74
npm -v
69
75
displayName: 'Print versions'
70
- - task : Npm @1
76
+ - task : CacheBeta @1
71
77
inputs :
72
- command : custom
73
- customCommand : ci
78
+ key : npm | $(Agent.OS) | package-lock.json
79
+ path : $(npm_config_cache)
80
+ displayName : ' Cache npm'
81
+ - script : npm ci
74
82
displayName : ' Install dependencies'
75
83
- script : npm i webpack@$(webpack_version)
76
84
displayName : ' Install "webpack@$(webpack_version)"'
@@ -88,10 +96,13 @@ jobs:
88
96
89
97
- job : macOS
90
98
pool :
91
- vmImage : macOS-10.14
99
+ vmImage : macOS-latest
92
100
strategy :
93
- maxParallel : 4
101
+ maxParallel : 5
94
102
matrix :
103
+ node-13 :
104
+ node_version : ^13.0.0
105
+ webpack_version : latest
95
106
node-12 :
96
107
node_version : ^12.0.0
97
108
webpack_version : latest
@@ -101,8 +112,8 @@ jobs:
101
112
node-8 :
102
113
node_version : ^8.9.0
103
114
webpack_version : latest
104
- node-8 -canary :
105
- node_version : ^8.9 .0
115
+ node-10 -canary :
116
+ node_version : ^10.13 .0
106
117
webpack_version : next
107
118
continue_on_error : true
108
119
steps :
@@ -119,10 +130,12 @@ jobs:
119
130
node -v
120
131
npm -v
121
132
displayName: 'Print versions'
122
- - task : Npm @1
133
+ - task : CacheBeta @1
123
134
inputs :
124
- command : custom
125
- customCommand : ci
135
+ key : npm | $(Agent.OS) | package-lock.json
136
+ path : $(npm_config_cache)
137
+ displayName : ' Cache npm'
138
+ - script : npm ci
126
139
displayName : ' Install dependencies'
127
140
- script : npm i webpack@$(webpack_version)
128
141
displayName : ' Install "webpack@$(webpack_version)"'
@@ -140,10 +153,13 @@ jobs:
140
153
141
154
- job : Windows
142
155
pool :
143
- vmImage : windows-2019
156
+ vmImage : windows-latest
144
157
strategy :
145
- maxParallel : 4
158
+ maxParallel : 5
146
159
matrix :
160
+ node-13 :
161
+ node_version : ^13.0.0
162
+ webpack_version : latest
147
163
node-12 :
148
164
node_version : ^12.0.0
149
165
webpack_version : latest
@@ -153,8 +169,8 @@ jobs:
153
169
node-8 :
154
170
node_version : ^8.9.0
155
171
webpack_version : latest
156
- node-8 -canary :
157
- node_version : ^8.9 .0
172
+ node-10 -canary :
173
+ node_version : ^10.13 .0
158
174
webpack_version : next
159
175
continue_on_error : true
160
176
steps :
@@ -174,10 +190,12 @@ jobs:
174
190
node -v
175
191
npm -v
176
192
displayName: 'Print versions'
177
- - task : Npm @1
193
+ - task : CacheBeta @1
178
194
inputs :
179
- command : custom
180
- customCommand : ci
195
+ key : npm | $(Agent.OS) | package-lock.json
196
+ path : $(npm_config_cache)
197
+ displayName : ' Cache npm'
198
+ - script : npm ci
181
199
displayName : ' Install dependencies'
182
200
- script : npm i webpack@$(webpack_version)
183
201
displayName : ' Install "webpack@$(webpack_version)"'
0 commit comments