@@ -920,19 +920,23 @@ jobs:
920920 env :
921921 E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION : ${{ steps.versions.outputs.node }}
922922
923+ - name : Copy to temp
924+ run : yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
925+ working-directory : dev-packages/e2e-tests
926+
923927 - name : Build E2E app
924- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
928+ working-directory : ${{ runner.temp }}/test-application
925929 timeout-minutes : 7
926930 run : pnpm ${{ matrix.build-command || 'test:build' }}
927931
928932 - name : Install Playwright
929933 uses : ./.github/actions/install-playwright
930934 with :
931935 browsers : chromium
932- cwd : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
936+ cwd : ${{ runner.temp }}/test-application
933937
934938 - name : Run E2E test
935- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
939+ working-directory : ${{ runner.temp }}/test-application
936940 timeout-minutes : 10
937941 run : pnpm test:assert
938942
@@ -941,7 +945,7 @@ jobs:
941945 if : failure()
942946 with :
943947 name : playwright-traces-job_e2e_playwright_tests-${{ matrix.test-application}}
944- path : dev-packages/e2e-tests/test-applications/ ${{ matrix. test-application}} /test-results
948+ path : ${{ runner.temp }}/ test-application/test-results
945949 overwrite : true
946950 retention-days : 7
947951
@@ -955,7 +959,7 @@ jobs:
955959 if : always()
956960 with :
957961 name : E2E Test Dump (${{ matrix.label || matrix.test-application }})
958- path : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}/event-dumps
962+ path : ${{ runner.temp }}/test-application /event-dumps
959963 overwrite : true
960964 retention-days : 7
961965 if-no-files-found : ignore
@@ -1037,19 +1041,23 @@ jobs:
10371041 env :
10381042 E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION : ${{ steps.versions.outputs.node }}
10391043
1044+ - name : Copy to temp
1045+ run : yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
1046+ working-directory : dev-packages/e2e-tests
1047+
10401048 - name : Build E2E app
1041- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1049+ working-directory : ${{ runner.temp }}/test-application
10421050 timeout-minutes : 7
10431051 run : pnpm ${{ matrix.build-command || 'test:build' }}
10441052
10451053 - name : Install Playwright
10461054 uses : ./.github/actions/install-playwright
10471055 with :
10481056 browsers : chromium
1049- cwd : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1057+ cwd : ${{ runner.temp }}/test-application
10501058
10511059 - name : Run E2E test
1052- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1060+ working-directory : ${{ runner.temp }}/test-application
10531061 timeout-minutes : 10
10541062 run : pnpm ${{ matrix.assert-command || 'test:assert' }}
10551063
@@ -1063,20 +1071,19 @@ jobs:
10631071 if : always()
10641072 with :
10651073 name : E2E Test Dump (${{ matrix.label || matrix.test-application }})
1066- path : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}/event-dumps
1074+ path : ${{ runner.temp }}/test-application /event-dumps
10671075 overwrite : true
10681076 retention-days : 7
10691077 if-no-files-found : ignore
10701078
10711079 - name : Deploy Astro to Cloudflare
1072- uses : cloudflare/pages -action@v1
1080+ uses : cloudflare/wrangler -action@v3
10731081 if : matrix.test-application == 'cloudflare-astro'
10741082 with :
10751083 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
10761084 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
1077- projectName : ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
1078- directory : dist
1079- workingDirectory : dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
1085+ command : pages deploy dist --project-name=${{ secrets.CLOUDFLARE_PROJECT_NAME }}
1086+ workingDirectory : ${{ runner.temp }}/test-application
10801087
10811088 job_required_jobs_passed :
10821089 name : All required jobs passed or were skipped
0 commit comments