Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-01-09 17:26:31 +00:00
parent fb08be7608
commit c7394cd572

View File

@@ -54,6 +54,15 @@ jobs:
with: with:
repository: element-hq/element-web 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 - uses: actions/setup-node@v4
with: with:
cache: "yarn" cache: "yarn"
@@ -77,14 +86,15 @@ jobs:
env: env:
CI_PACKAGE: true CI_PACKAGE: true
VERSION: "${{ steps.layered_build.outputs.VERSION }}" VERSION: "${{ steps.layered_build.outputs.VERSION }}"
run: | run: yarn build
yarn build
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: webapp name: build
path: webapp path: |
webapp
playwright-results.json
retention-days: 1 retention-days: 1
- name: Calculate runner variables - name: Calculate runner variables
@@ -133,8 +143,7 @@ jobs:
- name: 📥 Download artifact - name: 📥 Download artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: webapp name: build
path: webapp
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
@@ -166,14 +175,6 @@ jobs:
if: matrix.project == 'WebKit' && steps.playwright-cache.outputs.cache-hit == 'true' if: matrix.project == 'WebKit' && steps.playwright-cache.outputs.cache-hit == 'true'
run: yarn playwright install-deps webkit 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 # We skip tests tagged with @mergequeue when running on PRs, but run them in MQ and everywhere else
- name: Run Playwright tests - name: Run Playwright tests
run: | run: |