71
71
pull-requests : read
72
72
steps :
73
73
- name : Check out current commit
74
- uses : actions/checkout@v4
74
+ uses : actions/checkout@v5
75
75
with :
76
76
ref : ${{ env.HEAD_COMMIT }}
77
77
# We need to check out not only the fake merge commit between the PR and the base branch which GH creates, but
@@ -131,13 +131,13 @@ jobs:
131
131
(needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
132
132
steps :
133
133
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
134
- uses : actions/checkout@v4
134
+ uses : actions/checkout@v5
135
135
if : github.event_name == 'pull_request'
136
136
with :
137
137
ref : ${{ github.event.pull_request.base.sha }}
138
138
139
139
- name : ' Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
140
- uses : actions/checkout@v4
140
+ uses : actions/checkout@v5
141
141
with :
142
142
ref : ${{ env.HEAD_COMMIT }}
143
143
@@ -200,6 +200,9 @@ jobs:
200
200
changed_node :
201
201
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
202
202
' @sentry/node' ) }}
203
+ changed_node_overhead_action :
204
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
205
+ ' @sentry-internal/node-overhead-gh-action' ) }}
203
206
changed_deno :
204
207
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
205
208
' @sentry/deno' ) }}
@@ -235,7 +238,7 @@ jobs:
235
238
needs.job_get_metadata.outputs.is_release == 'true'
236
239
steps :
237
240
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
238
- uses : actions/checkout@v4
241
+ uses : actions/checkout@v5
239
242
with :
240
243
ref : ${{ env.HEAD_COMMIT }}
241
244
- name : Set up Node
@@ -253,6 +256,37 @@ jobs:
253
256
# Only run comparison against develop if this is a PR
254
257
comparison_branch : ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
255
258
259
+ job_node_overhead_check :
260
+ name : Node Overhead Check
261
+ needs : [job_get_metadata, job_build]
262
+ timeout-minutes : 15
263
+ runs-on : ubuntu-24.04
264
+ if :
265
+ (needs.job_build.outputs.changed_node == 'true' && github.event_name == 'pull_request') ||
266
+ (needs.job_build.outputs.changed_node_overhead_action == 'true' && github.event_name == 'pull_request') ||
267
+ needs.job_get_metadata.outputs.is_base_branch == 'true' || needs.job_get_metadata.outputs.is_release == 'true'
268
+ steps :
269
+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
270
+ uses : actions/checkout@v5
271
+ with :
272
+ ref : ${{ env.HEAD_COMMIT }}
273
+ - name : Set up Node
274
+ uses : actions/setup-node@v4
275
+ with :
276
+ node-version-file : ' package.json'
277
+ - name : Restore caches
278
+ uses : ./.github/actions/restore-cache
279
+ with :
280
+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
281
+ - name : Check node overhead
282
+ uses : ./dev-packages/node-overhead-gh-action
283
+ env :
284
+ DEBUG : ' 1'
285
+ with :
286
+ github_token : ${{ secrets.GITHUB_TOKEN }}
287
+ # Only run comparison against develop if this is a PR
288
+ comparison_branch : ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
289
+
256
290
job_lint :
257
291
name : Lint
258
292
# Even though the linter only checks source code, not built code, it needs the built code in order check that all
@@ -262,7 +296,7 @@ jobs:
262
296
runs-on : ubuntu-24.04
263
297
steps :
264
298
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
265
- uses : actions/checkout@v4
299
+ uses : actions/checkout@v5
266
300
with :
267
301
ref : ${{ env.HEAD_COMMIT }}
268
302
- name : Set up Node
@@ -281,14 +315,17 @@ jobs:
281
315
- name : Lint for ES compatibility
282
316
run : yarn lint:es-compatibility
283
317
318
+ - name : Check that yarn.lock is stable
319
+ run : yarn && git diff --exit-code yarn.lock
320
+
284
321
job_check_format :
285
322
name : Check file formatting
286
323
needs : [job_get_metadata]
287
324
timeout-minutes : 10
288
325
runs-on : ubuntu-24.04
289
326
steps :
290
327
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
291
- uses : actions/checkout@v4
328
+ uses : actions/checkout@v5
292
329
with :
293
330
ref : ${{ env.HEAD_COMMIT }}
294
331
@@ -311,7 +348,7 @@ jobs:
311
348
runs-on : ubuntu-24.04
312
349
steps :
313
350
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
314
- uses : actions/checkout@v4
351
+ uses : actions/checkout@v5
315
352
with :
316
353
ref : ${{ env.HEAD_COMMIT }}
317
354
- name : Set up Node
@@ -333,7 +370,7 @@ jobs:
333
370
if : needs.job_get_metadata.outputs.is_release == 'true'
334
371
steps :
335
372
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
336
- uses : actions/checkout@v4
373
+ uses : actions/checkout@v5
337
374
with :
338
375
ref : ${{ env.HEAD_COMMIT }}
339
376
- name : Set up Node
@@ -368,13 +405,13 @@ jobs:
368
405
runs-on : ubuntu-24.04
369
406
steps :
370
407
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
371
- uses : actions/checkout@v4
408
+ uses : actions/checkout@v5
372
409
if : github.event_name == 'pull_request'
373
410
with :
374
411
ref : ${{ github.event.pull_request.base.sha }}
375
412
376
413
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
377
- uses : actions/checkout@v4
414
+ uses : actions/checkout@v5
378
415
with :
379
416
ref : ${{ env.HEAD_COMMIT }}
380
417
- name : Set up Node
@@ -415,7 +452,7 @@ jobs:
415
452
runs-on : ubuntu-24.04
416
453
steps :
417
454
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
418
- uses : actions/checkout@v4
455
+ uses : actions/checkout@v5
419
456
with :
420
457
ref : ${{ env.HEAD_COMMIT }}
421
458
- name : Set up Node
@@ -440,7 +477,7 @@ jobs:
440
477
runs-on : ubuntu-24.04
441
478
steps :
442
479
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
443
- uses : actions/checkout@v4
480
+ uses : actions/checkout@v5
444
481
with :
445
482
ref : ${{ env.HEAD_COMMIT }}
446
483
- name : Set up Node
@@ -472,12 +509,12 @@ jobs:
472
509
node : [18, 20, 22, 24]
473
510
steps :
474
511
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
475
- uses : actions/checkout@v4
512
+ uses : actions/checkout@v5
476
513
if : github.event_name == 'pull_request'
477
514
with :
478
515
ref : ${{ github.event.pull_request.base.sha }}
479
516
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
480
- uses : actions/checkout@v4
517
+ uses : actions/checkout@v5
481
518
with :
482
519
ref : ${{ env.HEAD_COMMIT }}
483
520
- name : Set up Node
@@ -566,7 +603,7 @@ jobs:
566
603
567
604
steps :
568
605
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
569
- uses : actions/checkout@v4
606
+ uses : actions/checkout@v5
570
607
with :
571
608
ref : ${{ env.HEAD_COMMIT }}
572
609
- name : Set up Node
@@ -630,7 +667,7 @@ jobs:
630
667
631
668
steps :
632
669
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
633
- uses : actions/checkout@v4
670
+ uses : actions/checkout@v5
634
671
with :
635
672
ref : ${{ env.HEAD_COMMIT }}
636
673
- name : Set up Node
@@ -678,7 +715,7 @@ jobs:
678
715
timeout-minutes : 5
679
716
steps :
680
717
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
681
- uses : actions/checkout@v4
718
+ uses : actions/checkout@v5
682
719
with :
683
720
ref : ${{ env.HEAD_COMMIT }}
684
721
- name : Set up Node
@@ -716,7 +753,7 @@ jobs:
716
753
typescript : ' 3.8'
717
754
steps :
718
755
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
719
- uses : actions/checkout@v4
756
+ uses : actions/checkout@v5
720
757
with :
721
758
ref : ${{ env.HEAD_COMMIT }}
722
759
- name : Set up Node
@@ -752,7 +789,7 @@ jobs:
752
789
timeout-minutes : 15
753
790
steps :
754
791
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
755
- uses : actions/checkout@v4
792
+ uses : actions/checkout@v5
756
793
with :
757
794
ref : ${{ env.HEAD_COMMIT }}
758
795
- name : Set up Node
@@ -780,7 +817,7 @@ jobs:
780
817
node : [18, 20, 22, 24]
781
818
steps :
782
819
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
783
- uses : actions/checkout@v4
820
+ uses : actions/checkout@v5
784
821
with :
785
822
ref : ${{ env.HEAD_COMMIT }}
786
823
- name : Set up Node
@@ -827,12 +864,12 @@ jobs:
827
864
matrix-optional : ${{ steps.matrix-optional.outputs.matrix }}
828
865
steps :
829
866
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
830
- uses : actions/checkout@v4
867
+ uses : actions/checkout@v5
831
868
if : github.event_name == 'pull_request'
832
869
with :
833
870
ref : ${{ github.event.pull_request.base.sha }}
834
871
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
835
- uses : actions/checkout@v4
872
+ uses : actions/checkout@v5
836
873
with :
837
874
ref : ${{ env.HEAD_COMMIT }}
838
875
- name : Set up Node
@@ -897,7 +934,7 @@ jobs:
897
934
matrix : ${{ fromJson(needs.job_e2e_prepare.outputs.matrix) }}
898
935
steps :
899
936
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
900
- uses : actions/checkout@v4
937
+ uses : actions/checkout@v5
901
938
with :
902
939
ref : ${{ env.HEAD_COMMIT }}
903
940
- uses : pnpm/action-setup@v4
@@ -1027,7 +1064,7 @@ jobs:
1027
1064
1028
1065
steps :
1029
1066
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
1030
- uses : actions/checkout@v4
1067
+ uses : actions/checkout@v5
1031
1068
with :
1032
1069
ref : ${{ env.HEAD_COMMIT }}
1033
1070
- uses : pnpm/action-setup@v4
@@ -1137,6 +1174,6 @@ jobs:
1137
1174
runs-on : ubuntu-24.04
1138
1175
steps :
1139
1176
- name : Check for failures
1140
- if : contains(needs.*.result, 'failure')
1177
+ if : cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled ')
1141
1178
run : |
1142
1179
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
0 commit comments