@@ -144,16 +144,13 @@ jobs:
144144 - name : Start Docker services
145145 run : make bootstrap-e2e FLUSH_ARGS='--no-input'
146146
147- - name : Restore last-run.json
147+ - name : Restore last-run cache
148148 if : ${{ github.run_attempt > 1 }}
149- uses : dawidd6/action-download-artifact@v6
149+ id : restore-last-run
150+ uses : actions/cache/restore@v4
150151 with :
151- name : playwright-instance-last-run-chromium
152- path : docs/src/frontend/apps/e2e/test-results
153- workflow : docs-e2e-instance.yml
154- workflow_conclusion : " "
155- if_no_artifact_found : warn
156- continue-on-error : true
152+ path : src/frontend/apps/e2e/test-results/.last-run.json
153+ key : playwright-last-run-${{ github.run_id }}-chromium
157154
158155 - name : Run e2e tests
159156 env :
@@ -169,6 +166,13 @@ jobs:
169166
170167 yarn e2e:test --project='chromium' $LAST_FAILED_FLAG
171168
169+ - name : Save last-run cache
170+ if : always()
171+ uses : actions/cache/save@v4
172+ with :
173+ path : src/frontend/apps/e2e/test-results/.last-run.json
174+ key : playwright-last-run-${{ github.run_id }}-chromium
175+
172176 - name : Upload last-run artifact
173177 if : always()
174178 uses : actions/upload-artifact@v6
@@ -222,16 +226,13 @@ jobs:
222226 - name : Start Docker services
223227 run : make bootstrap-e2e FLUSH_ARGS='--no-input'
224228
225- - name : Restore last-run.json
229+ - name : Restore last-run cache
226230 if : ${{ github.run_attempt > 1 }}
227- uses : dawidd6/action-download-artifact@v6
231+ id : restore-last-run
232+ uses : actions/cache/restore@v4
228233 with :
229- name : playwright-instance-last-run-other-browser
230- path : docs/src/frontend/apps/e2e/test-results
231- workflow : docs-e2e-instance.yml
232- workflow_conclusion : " "
233- if_no_artifact_found : warn
234- continue-on-error : true
234+ path : src/frontend/apps/e2e/test-results/.last-run.json
235+ key : playwright-last-run-${{ github.run_id }}-other-browser
235236
236237 - name : Run e2e tests
237238 env :
@@ -247,6 +248,13 @@ jobs:
247248
248249 yarn e2e:test --project=firefox --project=webkit $LAST_FAILED_FLAG
249250
251+ - name : Save last-run cache
252+ if : always()
253+ uses : actions/cache/save@v4
254+ with :
255+ path : src/frontend/apps/e2e/test-results/.last-run.json
256+ key : playwright-last-run-${{ github.run_id }}-other-browser
257+
250258 - name : Upload last-run artifact
251259 if : always()
252260 uses : actions/upload-artifact@v6
0 commit comments