Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3874314

Browse files
authored
Parallelise Cypress runs once more (#9902)
1 parent 0c30b57 commit 3874314

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/cypress.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@ jobs:
8484
actions: read
8585
issues: read
8686
pull-requests: read
87-
environment:
88-
Cypress
89-
#strategy:
90-
# fail-fast: false
91-
# matrix:
92-
# # Run 4 instances in Parallel
93-
# runner: [1, 2, 3, 4]
87+
environment: Cypress
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
# Run 4 instances in Parallel
92+
runner: [1, 2, 3, 4]
9493
steps:
94+
- uses: browser-actions/setup-chrome@latest
95+
- run: echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
96+
9597
- uses: tecolicom/actions-use-apt-tools@v1
9698
with:
9799
# Our test suite includes some screenshot tests with unusual diacritics, which are
@@ -121,14 +123,12 @@ jobs:
121123
with:
122124
# The built-in Electron runner seems to grind to a halt trying
123125
# to run the tests, so use chrome.
124-
browser: chrome
126+
browser: "${{ env.BROWSER_PATH }}"
125127
start: npx serve -p 8080 webapp
126128
wait-on: "http://localhost:8080"
127-
record:
128-
true
129-
#parallel: true
130-
#command-prefix: 'yarn percy exec --parallel --'
131-
command-prefix: "yarn percy exec --"
129+
record: true
130+
parallel: true
131+
command-prefix: "yarn percy exec --parallel --"
132132
config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }'
133133
ci-build-id: ${{ needs.prepare.outputs.uuid }}
134134
env:
@@ -159,9 +159,8 @@ jobs:
159159
# tell Percy more details about the context of this run
160160
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
161161
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
162-
PERCY_PULL_REQUEST:
163-
${{ needs.prepare.outputs.pr_id }}
164-
#PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
162+
PERCY_PULL_REQUEST: ${{ needs.prepare.outputs.pr_id }}
163+
PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
165164
PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
166165

167166
- name: Upload Artifact

0 commit comments

Comments
 (0)