1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-22 09:02:11 +03:00

Merge pull request #11519 from matrix-org/kerry/cypress-segments

Segment Cypress jobs into 4 manual parallel runs.
This commit is contained in:
Andy Balaam
2023-09-04 12:29:41 +01:00
committed by GitHub

View File

@@ -118,8 +118,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
# Run 4 instances in Parallel # Naive segmentation of tests
runner: [1, 2, 3, 4] segment: ["a-i", "j-p", "q-s", "t-z"]
steps: steps:
- uses: browser-actions/setup-chrome@c485fa3bab6be59dce18dbc18ef6ab7cbc8ff5f1 - uses: browser-actions/setup-chrome@c485fa3bab6be59dce18dbc18ef6ab7cbc8ff5f1
- run: echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV - run: echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
@@ -176,6 +176,7 @@ jobs:
command-prefix: "yarn percy exec --parallel --" command-prefix: "yarn percy exec --parallel --"
config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }' config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }'
ci-build-id: ${{ needs.prepare.outputs.uuid }} ci-build-id: ${{ needs.prepare.outputs.uuid }}
spec: cypress/e2e/[${{ matrix.segment }}]*/**
env: env:
# pass the Dashboard record key as an environment variable # pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}