@@ -569,7 +569,7 @@ jobs:
569
569
yarn test:integration
570
570
571
571
job_browser_playwright_tests :
572
- name : Playwright (${{ matrix.bundle }}) Tests
572
+ name : Playwright (${{ matrix.bundle }}${{ matrix.shard && format(' {0}/{1}', matrix.shard, matrix.shards) || ''}} ) Tests
573
573
needs : [job_get_metadata, job_build]
574
574
if : needs.job_get_metadata.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
575
575
runs-on : ubuntu-20.04-large-js
@@ -591,6 +591,36 @@ jobs:
591
591
- bundle_tracing_es6_min
592
592
- bundle_tracing_replay_es6
593
593
- bundle_tracing_replay_es6_min
594
+ project :
595
+ - chromium
596
+ include :
597
+ # Only check all projects for esm & full bundle
598
+ # We also shard the tests as they take the longest
599
+ - bundle : bundle_tracing_replay_es6_min
600
+ project : ' '
601
+ shard : 1
602
+ shards : 2
603
+ - bundle : bundle_tracing_replay_es6_min
604
+ project : ' '
605
+ shard : 2
606
+ shards : 2
607
+ - bundle : esm
608
+ project : ' '
609
+ shard : 1
610
+ shards : 3
611
+ - bundle : esm
612
+ shard : 2
613
+ shards : 3
614
+ - bundle : esm
615
+ project : ' '
616
+ shard : 3
617
+ shards : 3
618
+ exclude :
619
+ # Do not run the default chromium-only tests
620
+ - bundle : bundle_tracing_replay_es6_min
621
+ project : ' chromium'
622
+ - bundle : esm
623
+ project : ' chromium'
594
624
595
625
steps :
596
626
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -628,9 +658,8 @@ jobs:
628
658
- name : Run Playwright tests
629
659
env :
630
660
PW_BUNDLE : ${{ matrix.bundle }}
631
- run : |
632
- cd dev-packages/browser-integration-tests
633
- yarn test:ci
661
+ working-directory : dev-packages/browser-integration-tests
662
+ run : yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
634
663
635
664
job_browser_loader_tests :
636
665
name : Playwright Loader (${{ matrix.bundle }}) Tests
0 commit comments