File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ install-command : npm install
23+ wait-on : ' https://petlov.vercel.app/' # 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 }}
34+
Original file line number Diff line number Diff line change 1+ {
2+ "vscodeInstanceId" : " vscode-44916-1768436880181" ,
3+ "port" : 8891 ,
4+ "pid" : 44916 ,
5+ "workspacePath" : " /home/leonardo/NinjaDoCypress/petlov-template" ,
6+ "workspaceName" : " petlov-template"
7+ }
Original file line number Diff line number Diff line change 11module . exports = {
2+ projectId : "ecst9n" ,
23 e2e : {
34 setupNodeEvents ( on , config ) {
45 // implement node event listeners here
You can’t perform that action at this time.
0 commit comments