Skip to content

Commit 5b7a7a7

Browse files
committed
Run tests in parallel, add cypress record key
1 parent 38b8fab commit 5b7a7a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cypress.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on: push
55
jobs:
66
cypress-run:
77
runs-on: ubuntu-22.04
8+
# Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
9+
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
10+
# Also see warning here https://github.com/cypress-io/github-action#parallel
11+
strategy:
12+
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
13+
matrix:
14+
containers: [1, 2] # Uses 2 parallel instances
815
container:
916
image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
1017
options: --user 1001
@@ -62,6 +69,8 @@ jobs:
6269
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
6370
record: true
6471
parallel: true # Runs test in parallel using settings above
72+
env:
73+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
6574

6675
- uses: actions/upload-artifact@v4
6776
if: failure()

0 commit comments

Comments
 (0)