66 pull_request :
77
88jobs :
9+ # This job and check-node-modules below dupliacte checks from `pr-checks.yml`.
10+ # We run them here as well to gate the more expensive checks which wouldn't
11+ # even be executing the correct code if these fail.
12+ check-js :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Check generated JavaScript
18+ run : .github/workflows/script/check-js.sh
19+
20+ check-node-modules :
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ - uses : actions/checkout@v2
25+ - name : Check node modules up to date
26+ run : .github/workflows/script/check-node-modules.sh
27+
928 multi-language-repo_test-autodetect-languages :
29+ needs : [check-js, check-node-modules]
1030 runs-on : ubuntu-latest
1131
1232 steps :
4060 fi
4161
4262 multi-language-repo_test-custom-queries-and-remote-config :
63+ needs : [check-js, check-node-modules]
4364 strategy :
4465 fail-fast : false
4566 matrix :
6990
7091 # Currently is not possible to analyze Go in conjunction with other languages in macos
7192 multi-language-repo_test-go-custom-queries :
93+ needs : [check-js, check-node-modules]
7294 strategy :
7395 fail-fast : false
7496 matrix :
99121 TEST_MODE : true
100122
101123 go-custom-tracing :
124+ needs : [check-js, check-node-modules]
102125 strategy :
103126 fail-fast : false
104127 matrix :
@@ -130,6 +153,7 @@ jobs:
130153 TEST_MODE : true
131154
132155 go-custom-tracing-autobuild :
156+ needs : [check-js, check-node-modules]
133157 # No need to test Go autobuild on multiple OSes since
134158 # we're testing Go custom tracing with a manual build on all OSes.
135159 runs-on : ubuntu-latest
@@ -153,6 +177,7 @@ jobs:
153177 TEST_MODE : true
154178
155179 multi-language-repo_rubocop :
180+ needs : [check-js, check-node-modules]
156181 runs-on : ubuntu-latest
157182
158183 steps :
@@ -184,6 +209,7 @@ jobs:
184209 TEST_MODE : true
185210
186211 test-proxy :
212+ needs : [check-js, check-node-modules]
187213 runs-on : ubuntu-latest
188214 container :
189215 image : ubuntu:18.04
@@ -211,6 +237,7 @@ jobs:
211237 TEST_MODE : true
212238
213239 runner-analyze-javascript-ubuntu :
240+ needs : [check-js, check-node-modules]
214241 runs-on : ubuntu-latest
215242
216243 steps :
@@ -237,6 +264,7 @@ jobs:
237264 TEST_MODE : true
238265
239266 runner-analyze-javascript-windows :
267+ needs : [check-js, check-node-modules]
240268 runs-on : windows-latest
241269
242270 steps :
@@ -259,6 +287,7 @@ jobs:
259287 TEST_MODE : true
260288
261289 runner-analyze-javascript-macos :
290+ needs : [check-js, check-node-modules]
262291 runs-on : macos-latest
263292
264293 steps :
@@ -281,6 +310,7 @@ jobs:
281310 TEST_MODE : true
282311
283312 runner-analyze-csharp-ubuntu :
313+ needs : [check-js, check-node-modules]
284314 runs-on : ubuntu-latest
285315
286316 steps :
@@ -315,6 +345,7 @@ jobs:
315345 TEST_MODE : true
316346
317347 runner-analyze-csharp-windows :
348+ needs : [check-js, check-node-modules]
318349 runs-on : windows-latest
319350
320351 steps :
@@ -350,6 +381,7 @@ jobs:
350381 TEST_MODE : true
351382
352383 runner-analyze-csharp-macos :
384+ needs : [check-js, check-node-modules]
353385 runs-on : macos-latest
354386
355387 steps :
@@ -386,6 +418,7 @@ jobs:
386418
387419
388420 runner-analyze-csharp-autobuild-ubuntu :
421+ needs : [check-js, check-node-modules]
389422 runs-on : ubuntu-latest
390423
391424 steps :
@@ -419,6 +452,7 @@ jobs:
419452 TEST_MODE : true
420453
421454 runner-analyze-csharp-autobuild-windows :
455+ needs : [check-js, check-node-modules]
422456 runs-on : windows-latest
423457
424458 steps :
@@ -453,6 +487,7 @@ jobs:
453487 TEST_MODE : true
454488
455489 runner-analyze-csharp-autobuild-macos :
490+ needs : [check-js, check-node-modules]
456491 runs-on : macos-latest
457492
458493 steps :
@@ -487,6 +522,7 @@ jobs:
487522 TEST_MODE : true
488523
489524 runner-upload-sarif :
525+ needs : [check-js, check-node-modules]
490526 runs-on : ubuntu-latest
491527
492528 if : ${{ github.event_name != 'pull_request' || github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id }}
0 commit comments