From c7394cd572911ec8b96a6c651d4f2df64959513b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 9 Jan 2025 17:26:31 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/end-to-end-tests.yaml | 29 +++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/end-to-end-tests.yaml b/.github/workflows/end-to-end-tests.yaml index 26c9b3969b..c27ac4f5d9 100644 --- a/.github/workflows/end-to-end-tests.yaml +++ b/.github/workflows/end-to-end-tests.yaml @@ -54,6 +54,15 @@ jobs: with: repository: element-hq/element-web + # Restore playwright-results.json file, which records the execution time of each test file. + # The splitTests function uses this file for sharding. + # We do this in the build stage to ensure it remains consistent if a playwright test got manually restarted + - name: Restore playwright-results.json + uses: actions/cache/restore@v4 + with: + path: playwright-results.json + key: playwright-results + - uses: actions/setup-node@v4 with: cache: "yarn" @@ -77,14 +86,15 @@ jobs: env: CI_PACKAGE: true VERSION: "${{ steps.layered_build.outputs.VERSION }}" - run: | - yarn build + run: yarn build - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: webapp - path: webapp + name: build + path: | + webapp + playwright-results.json retention-days: 1 - name: Calculate runner variables @@ -133,8 +143,7 @@ jobs: - name: 📥 Download artifact uses: actions/download-artifact@v4 with: - name: webapp - path: webapp + name: build - uses: actions/setup-node@v4 with: @@ -166,14 +175,6 @@ jobs: if: matrix.project == 'WebKit' && steps.playwright-cache.outputs.cache-hit == 'true' run: yarn playwright install-deps webkit - # Restore playwright-results.json file, which records the execution time of each test file. - # The splitTests function uses this file for sharding. - - name: Restore playwright-results.json - uses: actions/cache/restore@v4 - with: - path: playwright-results.json - key: playwright-results - # We skip tests tagged with @mergequeue when running on PRs, but run them in MQ and everywhere else - name: Run Playwright tests run: |