Merge pull request #11600 from matrix-org/johannes/bring-back-cypress-cloud-parallelisation
This commit is contained in:
commit
0583fc8090
1 changed files with 3 additions and 4 deletions
7
.github/workflows/cypress.yaml
vendored
7
.github/workflows/cypress.yaml
vendored
|
@ -118,8 +118,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Naive segmentation of tests
|
# Run 4 instances in Parallel
|
||||||
segment: ["a-i", "j-p", "q-s", "t-z"]
|
runner: [1, 2, 3, 4]
|
||||||
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
|
||||||
|
@ -172,11 +172,10 @@ jobs:
|
||||||
start: npx serve -p 8080 -L ../webapp
|
start: npx serve -p 8080 -L ../webapp
|
||||||
wait-on: "http://localhost:8080"
|
wait-on: "http://localhost:8080"
|
||||||
record: true
|
record: true
|
||||||
parallel: false
|
parallel: true
|
||||||
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 }}
|
||||||
|
|
Loading…
Reference in a new issue