13
13
- name : Setup Node.js
14
14
uses : actions/setup-node@v2
15
15
with :
16
+ cache : npm
16
17
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
17
18
18
- - name : Cache Node.js modules
19
- uses : actions/cache@v2
20
- with :
21
- path : ~/.npm
22
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
23
- restore-keys : |
24
- ${{ runner.OS }}-node-
25
-
26
19
- name : Install Dependencies
27
20
run : npm ci
28
21
@@ -65,16 +58,17 @@ jobs:
65
58
- name : Setup Node.js
66
59
uses : actions/setup-node@v2
67
60
with :
61
+ cache : npm
68
62
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
69
63
70
64
- name : Run npm install
71
- run : npm install --package-lock-only -- engine-strict --strict-peer-deps
65
+ run : npm install --engine-strict --strict-peer-deps
72
66
73
67
- name : Check that package-lock.json is in sync with package.json
74
68
run : git diff --exit-code package-lock.json
75
69
76
70
- name : Check that package-lock.json doesn't have conflicts
77
- run : npm ls --package-lock-only -- depth 999
71
+ run : npm ls --depth 999
78
72
79
73
integrationTests :
80
74
name : Run integration tests
87
81
uses : actions/setup-node@v2
88
82
with :
89
83
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
84
+ # We install bunch of packages during integration tests without locking them
85
+ # so we skip cache action to not pollute cache for other jobs.
90
86
91
- # We install bunch of packages during integration tests without locking them
92
- # so we skip cache action to not pollute cache for other jobs.
93
87
- name : Install Dependencies
94
88
run : npm ci
95
89
@@ -106,16 +100,9 @@ jobs:
106
100
- name : Setup Node.js
107
101
uses : actions/setup-node@v2
108
102
with :
103
+ cache : npm
109
104
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
110
105
111
- - name : Cache Node.js modules
112
- uses : actions/cache@v2
113
- with :
114
- path : ~/.npm
115
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
116
- restore-keys : |
117
- ${{ runner.OS }}-node-
118
-
119
106
- name : Install Dependencies
120
107
run : npm ci
121
108
@@ -132,16 +119,9 @@ jobs:
132
119
- name : Setup Node.js
133
120
uses : actions/setup-node@v2
134
121
with :
122
+ cache : npm
135
123
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
136
124
137
- - name : Cache Node.js modules
138
- uses : actions/cache@v2
139
- with :
140
- path : ~/.npm
141
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
142
- restore-keys : |
143
- ${{ runner.OS }}-node-
144
-
145
125
- name : Install Dependencies
146
126
run : npm ci
147
127
@@ -168,16 +148,9 @@ jobs:
168
148
- name : Setup Node.js v${{ matrix.node_version_to_setup }}
169
149
uses : actions/setup-node@v2
170
150
with :
151
+ cache : npm
171
152
node-version : ${{ matrix.node_version_to_setup }}
172
153
173
- - name : Cache Node.js modules
174
- uses : actions/cache@v2
175
- with :
176
- path : ~/.npm
177
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
178
- restore-keys : |
179
- ${{ runner.OS }}-node-
180
-
181
154
- name : Install Dependencies
182
155
run : npm ci
183
156
@@ -196,16 +169,9 @@ jobs:
196
169
- name : Setup Node.js
197
170
uses : actions/setup-node@v2
198
171
with :
172
+ cache : npm
199
173
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
200
174
201
- - name : Cache Node.js modules
202
- uses : actions/cache@v2
203
- with :
204
- path : ~/.npm
205
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
206
- restore-keys : |
207
- ${{ runner.OS }}-node-
208
-
209
175
- name : Install Dependencies
210
176
run : npm ci
211
177
@@ -224,16 +190,9 @@ jobs:
224
190
- name : Setup Node.js
225
191
uses : actions/setup-node@v2
226
192
with :
193
+ cache : npm
227
194
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
228
195
229
- - name : Cache Node.js modules
230
- uses : actions/cache@v2
231
- with :
232
- path : ~/.npm
233
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
234
- restore-keys : |
235
- ${{ runner.OS }}-node-
236
-
237
196
- name : Install Dependencies
238
197
run : npm ci
239
198
@@ -264,16 +223,9 @@ jobs:
264
223
- name : Setup Node.js
265
224
uses : actions/setup-node@v2
266
225
with :
226
+ cache : npm
267
227
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
268
228
269
- - name : Cache Node.js modules
270
- uses : actions/cache@v2
271
- with :
272
- path : ~/.npm
273
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
274
- restore-keys : |
275
- ${{ runner.OS }}-node-
276
-
277
229
- name : Install Dependencies
278
230
run : npm ci
279
231
@@ -300,16 +252,9 @@ jobs:
300
252
- name : Setup Node.js
301
253
uses : actions/setup-node@v2
302
254
with :
255
+ cache : npm
303
256
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
304
257
305
- - name : Cache Node.js modules
306
- uses : actions/cache@v2
307
- with :
308
- path : ~/.npm
309
- key : ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
310
- restore-keys : |
311
- ${{ runner.OS }}-node-
312
-
313
258
- name : Install Dependencies
314
259
run : npm ci
315
260
0 commit comments