11
11
uses : actions/checkout@v2
12
12
13
13
- name : Setup Node.js
14
- uses : actions/setup-node@v1
14
+ uses : actions/setup-node@v2
15
15
with :
16
16
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
17
17
55
55
exit 1
56
56
fi
57
57
58
+ checkPackageLock :
59
+ name : Check health of package-lock.json file
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - name : Checkout repo
63
+ uses : actions/checkout@v2
64
+
65
+ - name : Setup Node.js
66
+ uses : actions/setup-node@v2
67
+ with :
68
+ node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
69
+
70
+ - name : Run npm install
71
+ run : npm install --package-lock-only --engine-strict --strict-peer-deps
72
+
73
+ - name : Check that package-lock.json is in sync with package.json
74
+ run : git diff --exit-code package-lock.json
75
+
58
76
integrationTests :
59
77
name : Run integration tests
60
78
runs-on : ubuntu-latest
63
81
uses : actions/checkout@v2
64
82
65
83
- name : Setup Node.js
66
- uses : actions/setup-node@v1
84
+ uses : actions/setup-node@v2
67
85
with :
68
86
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
69
87
83
101
uses : actions/checkout@v2
84
102
85
103
- name : Setup Node.js
86
- uses : actions/setup-node@v1
104
+ uses : actions/setup-node@v2
87
105
with :
88
106
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
89
107
@@ -109,7 +127,7 @@ jobs:
109
127
uses : actions/checkout@v2
110
128
111
129
- name : Setup Node.js
112
- uses : actions/setup-node@v1
130
+ uses : actions/setup-node@v2
113
131
with :
114
132
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
115
133
@@ -145,7 +163,7 @@ jobs:
145
163
uses : actions/checkout@v2
146
164
147
165
- name : Setup Node.js v${{ matrix.node_version_to_setup }}
148
- uses : actions/setup-node@v1
166
+ uses : actions/setup-node@v2
149
167
with :
150
168
node-version : ${{ matrix.node_version_to_setup }}
151
169
@@ -173,7 +191,7 @@ jobs:
173
191
fetch-depth : 2
174
192
175
193
- name : Setup Node.js
176
- uses : actions/setup-node@v1
194
+ uses : actions/setup-node@v2
177
195
with :
178
196
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
179
197
@@ -191,6 +209,30 @@ jobs:
191
209
- name : Run Benchmark
192
210
run : ' npm run benchmark -- --revs HEAD HEAD~1'
193
211
212
+ diff-npm-package :
213
+ name : Diff content of NPM package
214
+ runs-on : ubuntu-latest
215
+ steps :
216
+ - name : Checkout repo
217
+ uses : actions/checkout@v2
218
+ with :
219
+ fetch-depth : 2
220
+
221
+ - name : Setup Node.js
222
+ uses : actions/setup-node@v2
223
+ with :
224
+ node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
225
+
226
+ - name : Generate report
227
+ run : ' node resources/diff-npm-package.js ${{ github.event.pull_request.base.sha }} HEAD'
228
+
229
+ - name : Upload generated report
230
+ uses : actions/upload-artifact@v2
231
+ with :
232
+ name : npm-dist-diff.html
233
+ path : ./npm-dist-diff.html
234
+ if-no-files-found : ignore
235
+
194
236
deploy-to-npm-branch :
195
237
name : Deploy to `npm` branch
196
238
runs-on : ubuntu-latest
@@ -204,7 +246,7 @@ jobs:
204
246
uses : actions/checkout@v2
205
247
206
248
- name : Setup Node.js
207
- uses : actions/setup-node@v1
249
+ uses : actions/setup-node@v2
208
250
with :
209
251
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
210
252
@@ -240,7 +282,7 @@ jobs:
240
282
uses : actions/checkout@v2
241
283
242
284
- name : Setup Node.js
243
- uses : actions/setup-node@v1
285
+ uses : actions/setup-node@v2
244
286
with :
245
287
node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
246
288
0 commit comments