62
62
jobs :
63
63
job_get_metadata :
64
64
name : Get Metadata
65
- runs-on : ubuntu-22 .04
65
+ runs-on : ubuntu-20 .04
66
66
permissions :
67
67
pull-requests : read
68
68
steps :
@@ -118,7 +118,7 @@ jobs:
118
118
job_build :
119
119
name : Build
120
120
needs : job_get_metadata
121
- runs-on : ubuntu-22 .04
121
+ runs-on : ubuntu-20 .04
122
122
timeout-minutes : 15
123
123
if : |
124
124
needs.job_get_metadata.outputs.changed_any_code == 'true' ||
@@ -196,7 +196,7 @@ jobs:
196
196
job_check_branches :
197
197
name : Check PR branches
198
198
needs : job_get_metadata
199
- runs-on : ubuntu-22 .04
199
+ runs-on : ubuntu-20 .04
200
200
if : github.event_name == 'pull_request'
201
201
permissions :
202
202
pull-requests : write
@@ -212,7 +212,7 @@ jobs:
212
212
name : Size Check
213
213
needs : [job_get_metadata, job_build]
214
214
timeout-minutes : 15
215
- runs-on : ubuntu-22 .04
215
+ runs-on : ubuntu-20 .04
216
216
if :
217
217
github.event_name == 'pull_request' || needs.job_get_metadata.outputs.is_base_branch == 'true' ||
218
218
needs.job_get_metadata.outputs.is_release == 'true'
@@ -242,7 +242,7 @@ jobs:
242
242
# inter-package dependencies resolve cleanly.
243
243
needs : [job_get_metadata, job_build]
244
244
timeout-minutes : 10
245
- runs-on : ubuntu-22 .04
245
+ runs-on : ubuntu-20 .04
246
246
steps :
247
247
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
248
248
uses : actions/checkout@v4
@@ -267,7 +267,7 @@ jobs:
267
267
name : Check file formatting
268
268
needs : [job_get_metadata]
269
269
timeout-minutes : 10
270
- runs-on : ubuntu-22 .04
270
+ runs-on : ubuntu-20 .04
271
271
steps :
272
272
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
273
273
uses : actions/checkout@v4
@@ -290,7 +290,7 @@ jobs:
290
290
name : Circular Dependency Check
291
291
needs : [job_get_metadata, job_build]
292
292
timeout-minutes : 10
293
- runs-on : ubuntu-22 .04
293
+ runs-on : ubuntu-20 .04
294
294
steps :
295
295
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
296
296
uses : actions/checkout@v4
@@ -310,7 +310,7 @@ jobs:
310
310
job_artifacts :
311
311
name : Upload Artifacts
312
312
needs : [job_get_metadata, job_build]
313
- runs-on : ubuntu-22 .04
313
+ runs-on : ubuntu-20 .04
314
314
# Build artifacts are only needed for releasing workflow.
315
315
if : needs.job_get_metadata.outputs.is_release == 'true'
316
316
steps :
@@ -347,7 +347,7 @@ jobs:
347
347
name : Browser Unit Tests
348
348
needs : [job_get_metadata, job_build]
349
349
timeout-minutes : 10
350
- runs-on : ubuntu-22 .04
350
+ runs-on : ubuntu-20 .04
351
351
steps :
352
352
- name : Check out base commit (${{ github.event.pull_request.base.sha }})
353
353
uses : actions/checkout@v4
@@ -381,12 +381,20 @@ jobs:
381
381
with :
382
382
token : ${{ secrets.CODECOV_TOKEN }}
383
383
384
+ - name : Upload test results to Codecov
385
+ if : cancelled() == false
386
+ continue-on-error : true
387
+ uses : codecov/test-results-action@v1
388
+ with :
389
+ files : packages/**/*.junit.xml
390
+ token : ${{ secrets.CODECOV_TOKEN }}
391
+
384
392
job_bun_unit_tests :
385
393
name : Bun Unit Tests
386
394
needs : [job_get_metadata, job_build]
387
395
if : needs.job_build.outputs.changed_bun == 'true' || github.event_name != 'pull_request'
388
396
timeout-minutes : 10
389
- runs-on : ubuntu-22 .04
397
+ runs-on : ubuntu-20 .04
390
398
strategy :
391
399
fail-fast : false
392
400
steps :
@@ -413,7 +421,7 @@ jobs:
413
421
needs : [job_get_metadata, job_build]
414
422
if : needs.job_build.outputs.changed_deno == 'true' || github.event_name != 'pull_request'
415
423
timeout-minutes : 10
416
- runs-on : ubuntu-22 .04
424
+ runs-on : ubuntu-20 .04
417
425
strategy :
418
426
fail-fast : false
419
427
steps :
@@ -443,7 +451,7 @@ jobs:
443
451
name : Node (${{ matrix.node }}) Unit Tests
444
452
needs : [job_get_metadata, job_build]
445
453
timeout-minutes : 10
446
- runs-on : ubuntu-22 .04
454
+ runs-on : ubuntu-20 .04
447
455
strategy :
448
456
fail-fast : false
449
457
matrix :
@@ -484,6 +492,14 @@ jobs:
484
492
with :
485
493
token : ${{ secrets.CODECOV_TOKEN }}
486
494
495
+ - name : Upload test results to Codecov
496
+ if : cancelled() == false
497
+ continue-on-error : true
498
+ uses : codecov/test-results-action@v1
499
+ with :
500
+ files : packages/**/*.junit.xml
501
+ token : ${{ secrets.CODECOV_TOKEN }}
502
+
487
503
job_browser_playwright_tests :
488
504
name : Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}', matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
489
505
needs : [job_get_metadata, job_build]
@@ -578,7 +594,7 @@ jobs:
578
594
name : PW ${{ matrix.bundle }} Tests
579
595
needs : [job_get_metadata, job_build]
580
596
if : needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
581
- runs-on : ubuntu-22 .04
597
+ runs-on : ubuntu-20 .04
582
598
timeout-minutes : 15
583
599
strategy :
584
600
fail-fast : false
@@ -638,7 +654,7 @@ jobs:
638
654
job_check_for_faulty_dts :
639
655
name : Check for faulty .d.ts files
640
656
needs : [job_get_metadata, job_build]
641
- runs-on : ubuntu-22 .04
657
+ runs-on : ubuntu-20 .04
642
658
timeout-minutes : 5
643
659
steps :
644
660
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -666,7 +682,7 @@ jobs:
666
682
Tests
667
683
needs : [job_get_metadata, job_build]
668
684
if : needs.job_build.outputs.changed_node_integration == 'true' || github.event_name != 'pull_request'
669
- runs-on : ubuntu-22 .04
685
+ runs-on : ubuntu-20 .04
670
686
timeout-minutes : 15
671
687
strategy :
672
688
fail-fast : false
@@ -701,11 +717,19 @@ jobs:
701
717
working-directory : dev-packages/node-integration-tests
702
718
run : yarn test
703
719
720
+ - name : Upload test results to Codecov
721
+ if : cancelled() == false
722
+ continue-on-error : true
723
+ uses : codecov/test-results-action@v1
724
+ with :
725
+ directory : dev-packages/node-integration-tests
726
+ token : ${{ secrets.CODECOV_TOKEN }}
727
+
704
728
job_remix_integration_tests :
705
729
name : Remix (Node ${{ matrix.node }}) Tests
706
730
needs : [job_get_metadata, job_build]
707
731
if : needs.job_build.outputs.changed_remix == 'true' || github.event_name != 'pull_request'
708
- runs-on : ubuntu-22 .04
732
+ runs-on : ubuntu-20 .04
709
733
timeout-minutes : 10
710
734
strategy :
711
735
fail-fast : false
@@ -737,6 +761,14 @@ jobs:
737
761
cd packages/remix
738
762
yarn test:integration:ci
739
763
764
+ - name : Upload test results to Codecov
765
+ if : cancelled() == false
766
+ continue-on-error : true
767
+ uses : codecov/test-results-action@v1
768
+ with :
769
+ directory : packages/remix
770
+ token : ${{ secrets.CODECOV_TOKEN }}
771
+
740
772
job_e2e_prepare :
741
773
name : Prepare E2E tests
742
774
# We want to run this if:
@@ -801,7 +833,7 @@ jobs:
801
833
# See: https://github.com/actions/runner/issues/2205
802
834
if : always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
803
835
needs : [job_get_metadata, job_build, job_e2e_prepare]
804
- runs-on : ubuntu-22 .04
836
+ runs-on : ubuntu-20 .04
805
837
timeout-minutes : 15
806
838
env :
807
839
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -923,7 +955,7 @@ jobs:
923
955
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
924
956
github.actor != 'dependabot[bot]'
925
957
needs : [job_get_metadata, job_build, job_e2e_prepare]
926
- runs-on : ubuntu-22 .04
958
+ runs-on : ubuntu-20 .04
927
959
timeout-minutes : 15
928
960
env :
929
961
E2E_TEST_AUTH_TOKEN : ${{ secrets.E2E_TEST_AUTH_TOKEN }}
@@ -1043,7 +1075,7 @@ jobs:
1043
1075
]
1044
1076
# Always run this, even if a dependent job failed
1045
1077
if : always()
1046
- runs-on : ubuntu-22 .04
1078
+ runs-on : ubuntu-20 .04
1047
1079
steps :
1048
1080
- name : Check for failures
1049
1081
if : contains(needs.*.result, 'failure')
0 commit comments