@@ -920,19 +920,23 @@ jobs:
920
920
env :
921
921
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION : ${{ steps.versions.outputs.node }}
922
922
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
+
923
927
- name : Build E2E app
924
- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
928
+ working-directory : ${{ runner.temp }}/test-application
925
929
timeout-minutes : 7
926
930
run : pnpm ${{ matrix.build-command || 'test:build' }}
927
931
928
932
- name : Install Playwright
929
933
uses : ./.github/actions/install-playwright
930
934
with :
931
935
browsers : chromium
932
- cwd : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
936
+ cwd : ${{ runner.temp }}/test-application
933
937
934
938
- name : Run E2E test
935
- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
939
+ working-directory : ${{ runner.temp }}/test-application
936
940
timeout-minutes : 10
937
941
run : pnpm test:assert
938
942
@@ -941,7 +945,7 @@ jobs:
941
945
if : failure()
942
946
with :
943
947
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
945
949
overwrite : true
946
950
retention-days : 7
947
951
@@ -955,7 +959,7 @@ jobs:
955
959
if : always()
956
960
with :
957
961
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
959
963
overwrite : true
960
964
retention-days : 7
961
965
if-no-files-found : ignore
@@ -1037,19 +1041,23 @@ jobs:
1037
1041
env :
1038
1042
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION : ${{ steps.versions.outputs.node }}
1039
1043
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
+
1040
1048
- name : Build E2E app
1041
- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1049
+ working-directory : ${{ runner.temp }}/test-application
1042
1050
timeout-minutes : 7
1043
1051
run : pnpm ${{ matrix.build-command || 'test:build' }}
1044
1052
1045
1053
- name : Install Playwright
1046
1054
uses : ./.github/actions/install-playwright
1047
1055
with :
1048
1056
browsers : chromium
1049
- cwd : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1057
+ cwd : ${{ runner.temp }}/test-application
1050
1058
1051
1059
- name : Run E2E test
1052
- working-directory : dev-packages/e2e-tests/test-applications/ ${{ matrix.test-application }}
1060
+ working-directory : ${{ runner.temp }}/test-application
1053
1061
timeout-minutes : 10
1054
1062
run : pnpm ${{ matrix.assert-command || 'test:assert' }}
1055
1063
@@ -1063,20 +1071,19 @@ jobs:
1063
1071
if : always()
1064
1072
with :
1065
1073
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
1067
1075
overwrite : true
1068
1076
retention-days : 7
1069
1077
if-no-files-found : ignore
1070
1078
1071
1079
- name : Deploy Astro to Cloudflare
1072
- uses : cloudflare/pages -action@v1
1080
+ uses : cloudflare/wrangler -action@v3
1073
1081
if : matrix.test-application == 'cloudflare-astro'
1074
1082
with :
1075
1083
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
1076
1084
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
1080
1087
1081
1088
job_required_jobs_passed :
1082
1089
name : All required jobs passed or were skipped
0 commit comments