1
- name : Cypress Tests
2
- on : [push]
3
- jobs :
4
- cypress-run :
5
- runs-on : ubuntu-latest
6
- # Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
7
- # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
8
- # Also see warning here https://github.com/cypress-io/github-action#parallel
9
- strategy :
10
- fail-fast : false # https://github.com/cypress-io/github-action/issues/48
11
- matrix :
12
- containers : [1, 2] # Uses 2 parallel instances
13
- steps :
14
- - name : Checkout
15
- uses : actions/checkout@v4
16
- - name : Cypress run
17
- # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
18
- uses : cypress-io/github-action@v6
19
- with :
20
- # Starts web server for E2E tests - replace with your own server invocation
21
- # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
22
- start : npm start
23
- wait-on : ' http://localhost:3000' # Waits for above
24
- # Records to Cypress Cloud
25
- # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
26
- record : true
27
- parallel : true # Runs test in parallel using settings above
28
- env :
29
- # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
30
- # in GitHub repo → Settings → Secrets → Actions
31
- CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
32
- # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1
+ # name: Cypress Tests
2
+ # on: [push]
3
+ # jobs:
4
+ # cypress-run:
5
+ # runs-on: ubuntu-latest
6
+ # # Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
7
+ # # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
8
+ # # Also see warning here https://github.com/cypress-io/github-action#parallel
9
+ # strategy:
10
+ # fail-fast: false # https://github.com/cypress-io/github-action/issues/48
11
+ # matrix:
12
+ # containers: [1, 2] # Uses 2 parallel instances
13
+ # steps:
14
+ # - name: Checkout
15
+ # uses: actions/checkout@v4
16
+ # - name: Cypress run
17
+ # # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
18
+ # uses: cypress-io/github-action@v6
19
+ # with:
20
+ # # Starts web server for E2E tests - replace with your own server invocation
21
+ # # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
22
+ # start: npm start
23
+ # wait-on: 'http://localhost:3000' # Waits for above
24
+ # # Records to Cypress Cloud
25
+ # # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
26
+ # record: true
27
+ # parallel: true # Runs test in parallel using settings above
28
+ # env:
29
+ # # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
30
+ # # in GitHub repo → Settings → Secrets → Actions
31
+ # CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
32
+ # # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
33
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments