@@ -1030,6 +1030,16 @@ jobs:
10301030 compression-level : 6
10311031 overwrite : true
10321032
1033+ - name : Upload test-utils tarball artifact
1034+ uses : actions/upload-artifact@v7
1035+ with :
1036+ name : build-test-utils-tarball-output
1037+ path : dev-packages/test-utils/*.tgz
1038+ if-no-files-found : error
1039+ retention-days : 4
1040+ compression-level : 6
1041+ overwrite : true
1042+
10331043 job_e2e_tests :
10341044 name : E2E ${{ matrix.label || matrix.test-application }} Test
10351045 # We need to add the `always()` check here because the previous step has this as well :(
@@ -1080,24 +1090,35 @@ jobs:
10801090 uses : denoland/setup-deno@v2.0.5
10811091 with :
10821092 deno-version : ${{ matrix.deno-version || 'v2.8.3' }}
1083- - name : Restore caches
1084- uses : ./.github/actions/restore-cache
1085- with :
1086- dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
1093+ - name : Install pnpm
1094+ uses : ./.github/actions/install-pnpm
10871095
10881096 - name : Restore tarball artifacts
10891097 uses : actions/download-artifact@v8
10901098 with :
10911099 name : build-tarball-output
10921100 path : ${{ env.TARBALL_ARTIFACT_DOWNLOAD_PATH }}
10931101
1102+ - name : Restore test-utils tarball artifact
1103+ uses : actions/download-artifact@v8
1104+ with :
1105+ name : build-test-utils-tarball-output
1106+ path : dev-packages/test-utils
1107+
10941108 - name : Restore build layer artifacts
10951109 uses : actions/download-artifact@v8
10961110 if : matrix.test-application == 'aws-serverless' || matrix.test-application == 'aws-serverless-layer'
10971111 with :
10981112 name : build-layer-output
10991113 path : ${{ env.BUILD_LAYER_PATH }}
11001114
1115+ # The Lambda functions install the built workspace packages directly (see `src/stack.ts`).
1116+ - name : Restore build artifacts
1117+ uses : actions/download-artifact@v8
1118+ if : matrix.test-application == 'aws-serverless'
1119+ with :
1120+ name : build-output
1121+
11011122 # Installs Playwright while the app builds.
11021123 # Started after the artifact downloads: starting next to them made `download-artifact` fail to read the event file.
11031124 - name : Install Playwright
@@ -1153,21 +1174,6 @@ jobs:
11531174 overwrite : true
11541175 retention-days : 7
11551176
1156- - name : Pre-process E2E Test Dumps
1157- if : failure()
1158- run : |
1159- node ./scripts/normalize-e2e-test-dump-transaction-events.js
1160-
1161- - name : Upload E2E Test Event Dumps
1162- uses : actions/upload-artifact@v7
1163- if : failure()
1164- with :
1165- name : E2E Test Dump (${{ matrix.label || matrix.test-application }})
1166- path : ${{ runner.temp }}/test-application/event-dumps
1167- overwrite : true
1168- retention-days : 7
1169- if-no-files-found : ignore
1170-
11711177 # - We skip optional tests on release branches
11721178 job_optional_e2e_tests :
11731179 name : E2E ${{ matrix.label || matrix.test-application }} Test (optional)
@@ -1225,17 +1231,21 @@ jobs:
12251231 uses : denoland/setup-deno@v2.0.5
12261232 with :
12271233 deno-version : ${{ matrix.deno-version || 'v2.8.3' }}
1228- - name : Restore caches
1229- uses : ./.github/actions/restore-cache
1230- with :
1231- dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
1234+ - name : Install pnpm
1235+ uses : ./.github/actions/install-pnpm
12321236
12331237 - name : Restore tarball artifacts
12341238 uses : actions/download-artifact@v8
12351239 with :
12361240 name : build-tarball-output
12371241 path : ${{ env.TARBALL_ARTIFACT_DOWNLOAD_PATH }}
12381242
1243+ - name : Restore test-utils tarball artifact
1244+ uses : actions/download-artifact@v8
1245+ with :
1246+ name : build-test-utils-tarball-output
1247+ path : dev-packages/test-utils
1248+
12391249 # Installs Playwright while the app builds.
12401250 # Started after the artifact downloads: starting next to them made `download-artifact` fail to read the event file.
12411251 - name : Install Playwright
@@ -1278,21 +1288,6 @@ jobs:
12781288 timeout-minutes : 10
12791289 run : ${{ matrix.assert-command || 'pnpm test:assert' }}
12801290
1281- - name : Pre-process E2E Test Dumps
1282- if : failure()
1283- run : |
1284- node ./scripts/normalize-e2e-test-dump-transaction-events.js
1285-
1286- - name : Upload E2E Test Event Dumps
1287- uses : actions/upload-artifact@v7
1288- if : failure()
1289- with :
1290- name : E2E Test Dump (${{ matrix.label || matrix.test-application }})
1291- path : ${{ runner.temp }}/test-application/event-dumps
1292- overwrite : true
1293- retention-days : 7
1294- if-no-files-found : ignore
1295-
12961291 job_required_jobs_passed :
12971292 name : All required jobs passed or were skipped
12981293 needs :
0 commit comments