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
@@ -288,7 +322,7 @@ jobs:
288
322
runs-on : ubuntu-24.04
289
323
steps :
290
324
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
291
- uses : actions/checkout@v4
325
+ uses : actions/checkout@v5
292
326
with :
293
327
ref : ${{ env.HEAD_COMMIT }}
294
328
@@ -311,7 +345,7 @@ jobs:
311
345
runs-on : ubuntu-24.04
312
346
steps :
313
347
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
314
- uses : actions/checkout@v4
348
+ uses : actions/checkout@v5
315
349
with :
316
350
ref : ${{ env.HEAD_COMMIT }}
317
351
- name : Set up Node
@@ -333,7 +367,7 @@ jobs:
333
367
if : needs.job_get_metadata.outputs.is_release == 'true'
334
368
steps :
335
369
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
336
- uses : actions/checkout@v4
370
+ uses : actions/checkout@v5
337
371
with :
338
372
ref : ${{ env.HEAD_COMMIT }}
339
373
- name : Set up Node
@@ -368,13 +402,13 @@ jobs:
368
402
runs-on : ubuntu-24.04
369
403
steps :
370
404
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
371
- uses : actions/checkout@v4
405
+ uses : actions/checkout@v5
372
406
if : github.event_name == 'pull_request'
373
407
with :
374
408
ref : ${{ github.event.pull_request.base.sha }}
375
409
376
410
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
377
- uses : actions/checkout@v4
411
+ uses : actions/checkout@v5
378
412
with :
379
413
ref : ${{ env.HEAD_COMMIT }}
380
414
- name : Set up Node
@@ -415,7 +449,7 @@ jobs:
415
449
runs-on : ubuntu-24.04
416
450
steps :
417
451
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
418
- uses : actions/checkout@v4
452
+ uses : actions/checkout@v5
419
453
with :
420
454
ref : ${{ env.HEAD_COMMIT }}
421
455
- name : Set up Node
@@ -440,7 +474,7 @@ jobs:
440
474
runs-on : ubuntu-24.04
441
475
steps :
442
476
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
443
- uses : actions/checkout@v4
477
+ uses : actions/checkout@v5
444
478
with :
445
479
ref : ${{ env.HEAD_COMMIT }}
446
480
- name : Set up Node
@@ -472,12 +506,12 @@ jobs:
472
506
node : [18, 20, 22, 24]
473
507
steps :
474
508
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
475
- uses : actions/checkout@v4
509
+ uses : actions/checkout@v5
476
510
if : github.event_name == 'pull_request'
477
511
with :
478
512
ref : ${{ github.event.pull_request.base.sha }}
479
513
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
480
- uses : actions/checkout@v4
514
+ uses : actions/checkout@v5
481
515
with :
482
516
ref : ${{ env.HEAD_COMMIT }}
483
517
- name : Set up Node
@@ -566,7 +600,7 @@ jobs:
566
600
567
601
steps :
568
602
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
569
- uses : actions/checkout@v4
603
+ uses : actions/checkout@v5
570
604
with :
571
605
ref : ${{ env.HEAD_COMMIT }}
572
606
- name : Set up Node
@@ -630,7 +664,7 @@ jobs:
630
664
631
665
steps :
632
666
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
633
- uses : actions/checkout@v4
667
+ uses : actions/checkout@v5
634
668
with :
635
669
ref : ${{ env.HEAD_COMMIT }}
636
670
- name : Set up Node
@@ -678,7 +712,7 @@ jobs:
678
712
timeout-minutes : 5
679
713
steps :
680
714
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
681
- uses : actions/checkout@v4
715
+ uses : actions/checkout@v5
682
716
with :
683
717
ref : ${{ env.HEAD_COMMIT }}
684
718
- name : Set up Node
@@ -716,7 +750,7 @@ jobs:
716
750
typescript : ' 3.8'
717
751
steps :
718
752
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
719
- uses : actions/checkout@v4
753
+ uses : actions/checkout@v5
720
754
with :
721
755
ref : ${{ env.HEAD_COMMIT }}
722
756
- name : Set up Node
@@ -752,7 +786,7 @@ jobs:
752
786
timeout-minutes : 15
753
787
steps :
754
788
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
755
- uses : actions/checkout@v4
789
+ uses : actions/checkout@v5
756
790
with :
757
791
ref : ${{ env.HEAD_COMMIT }}
758
792
- name : Set up Node
@@ -780,7 +814,7 @@ jobs:
780
814
node : [18, 20, 22, 24]
781
815
steps :
782
816
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
783
- uses : actions/checkout@v4
817
+ uses : actions/checkout@v5
784
818
with :
785
819
ref : ${{ env.HEAD_COMMIT }}
786
820
- name : Set up Node
@@ -827,12 +861,12 @@ jobs:
827
861
matrix-optional : ${{ steps.matrix-optional.outputs.matrix }}
828
862
steps :
829
863
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
830
- uses : actions/checkout@v4
864
+ uses : actions/checkout@v5
831
865
if : github.event_name == 'pull_request'
832
866
with :
833
867
ref : ${{ github.event.pull_request.base.sha }}
834
868
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
835
- uses : actions/checkout@v4
869
+ uses : actions/checkout@v5
836
870
with :
837
871
ref : ${{ env.HEAD_COMMIT }}
838
872
- name : Set up Node
@@ -897,7 +931,7 @@ jobs:
897
931
matrix : ${{ fromJson(needs.job_e2e_prepare.outputs.matrix) }}
898
932
steps :
899
933
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
900
- uses : actions/checkout@v4
934
+ uses : actions/checkout@v5
901
935
with :
902
936
ref : ${{ env.HEAD_COMMIT }}
903
937
- uses : pnpm/action-setup@v4
@@ -1027,7 +1061,7 @@ jobs:
1027
1061
1028
1062
steps :
1029
1063
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
1030
- uses : actions/checkout@v4
1064
+ uses : actions/checkout@v5
1031
1065
with :
1032
1066
ref : ${{ env.HEAD_COMMIT }}
1033
1067
- uses : pnpm/action-setup@v4
@@ -1137,6 +1171,6 @@ jobs:
1137
1171
runs-on : ubuntu-24.04
1138
1172
steps :
1139
1173
- name : Check for failures
1140
- if : contains(needs.*.result, 'failure')
1174
+ if : cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled ')
1141
1175
run : |
1142
1176
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
0 commit comments