@@ -27,6 +27,7 @@ concurrency:
2727
2828env :
2929 HEAD_COMMIT : ${{ github.event.inputs.commit || github.sha }}
30+ PLAYWRIGHT_IMAGE : ghcr.io/getsentry/sentry-javascript/playwright:v1.56.1
3031
3132 # WARNING: this disables cross os caching as ~ and
3233 # github.workspace evaluate to differents paths
@@ -479,7 +480,10 @@ jobs:
479480 if : needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
480481 runs-on : ubuntu-24.04-large-js
481482 container :
482- image : mcr.microsoft.com/playwright:v1.56.1-noble
483+ image : ${{ env.PLAYWRIGHT_IMAGE }}
484+ credentials :
485+ username : ${{ github.actor }}
486+ password : ${{ secrets.GITHUB_TOKEN }}
483487 timeout-minutes : 25
484488 strategy :
485489 fail-fast : false
@@ -537,8 +541,6 @@ jobs:
537541 uses : actions/setup-node@v6
538542 with :
539543 node-version-file : ' package.json'
540- - name : Install yarn
541- run : npm install -g yarn@1.22.22
542544 - name : Restore caches
543545 uses : ./.github/actions/restore-cache
544546 with :
@@ -581,7 +583,10 @@ jobs:
581583 if : needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
582584 runs-on : ubuntu-24.04
583585 container :
584- image : mcr.microsoft.com/playwright:v1.56.1-noble
586+ image : ${{ env.PLAYWRIGHT_IMAGE }}
587+ credentials :
588+ username : ${{ github.actor }}
589+ password : ${{ secrets.GITHUB_TOKEN }}
585590 timeout-minutes : 15
586591 strategy :
587592 fail-fast : false
@@ -604,8 +609,6 @@ jobs:
604609 uses : actions/setup-node@v6
605610 with :
606611 node-version-file : ' package.json'
607- - name : Install yarn
608- run : npm install -g yarn@1.22.22
609612 - name : Restore caches
610613 uses : ./.github/actions/restore-cache
611614 with :
@@ -772,6 +775,11 @@ jobs:
772775 needs : [job_get_metadata, job_build]
773776 if : needs.job_build.outputs.changed_remix == 'true' || github.event_name != 'pull_request'
774777 runs-on : ubuntu-24.04
778+ container :
779+ image : ${{ env.PLAYWRIGHT_IMAGE }}
780+ credentials :
781+ username : ${{ github.actor }}
782+ password : ${{ secrets.GITHUB_TOKEN }}
775783 timeout-minutes : 15
776784 strategy :
777785 fail-fast : false
@@ -791,9 +799,6 @@ jobs:
791799 with :
792800 dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
793801
794- - name : Install Playwright
795- run : npx playwright install --with-deps chromium
796-
797802 - name : Run integration tests
798803 env :
799804 NODE_VERSION : ${{ matrix.node }}
@@ -871,6 +876,11 @@ jobs:
871876 always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
872877 needs : [job_get_metadata, job_build, job_e2e_prepare]
873878 runs-on : ubuntu-24.04
879+ container :
880+ image : ${{ env.PLAYWRIGHT_IMAGE }}
881+ credentials :
882+ username : ${{ github.actor }}
883+ password : ${{ secrets.GITHUB_TOKEN }}
874884 timeout-minutes : 15
875885 env :
876886 # We just use a dummy DSN here, only send to the tunnel anyhow
@@ -952,10 +962,6 @@ jobs:
952962 env :
953963 SENTRY_E2E_WORKSPACE_ROOT : ${{ github.workspace }}
954964
955- - name : Install Playwright
956- run : npx playwright install --with-deps chromium
957- working-directory : ${{ runner.temp }}/test-application
958-
959965 - name : Run E2E test
960966 working-directory : ${{ runner.temp }}/test-application
961967 timeout-minutes : 10
@@ -999,6 +1005,11 @@ jobs:
9991005 github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
10001006 needs : [job_get_metadata, job_build, job_e2e_prepare]
10011007 runs-on : ubuntu-24.04
1008+ container :
1009+ image : ${{ env.PLAYWRIGHT_IMAGE }}
1010+ credentials :
1011+ username : ${{ github.actor }}
1012+ password : ${{ secrets.GITHUB_TOKEN }}
10021013 timeout-minutes : 15
10031014 env :
10041015 E2E_TEST_AUTH_TOKEN : ${{ secrets.E2E_TEST_AUTH_TOKEN }}
@@ -1065,10 +1076,6 @@ jobs:
10651076 timeout-minutes : 7
10661077 run : ${{ matrix.build-command || 'pnpm test:build' }}
10671078
1068- - name : Install Playwright
1069- run : npx playwright install --with-deps chromium
1070- working-directory : ${{ runner.temp }}/test-application
1071-
10721079 - name : Run E2E test
10731080 working-directory : ${{ runner.temp }}/test-application
10741081 timeout-minutes : 10
0 commit comments