File tree Expand file tree Collapse file tree 1 file changed +19
-33
lines changed Expand file tree Collapse file tree 1 file changed +19
-33
lines changed Original file line number Diff line number Diff line change 11version : 2.1
2-
32orbs :
4- cypress :
cypress-io/[email protected] 5-
3+ cypress : cypress-io/cypress@3
4+ jobs :
5+ run-cypress-in-specified-node-version :
6+ executor :
7+ name : cypress/default
8+ node-version : " 20.6"
9+ steps :
10+ - cypress/install :
11+ package-manager : npm
12+ working-directory : test
13+ - cypress/run-tests :
14+ cypress-command : npx cypress run
15+ start-command : bash ./up_github.sh
16+ working-directory : test
617workflows :
7- test-workflow :
18+ test :
819 jobs :
9- - cypress/run :
10- executor : cypress/default
11- steps :
12- - run :
13- name : Build and start Docker Compose services
14- command : bash ./build_github.sh
15- - run :
16- name : Wait for service to be ready
17- command : |
18- timeout=300
19- while ! curl -s http://localhost:8089 > /dev/null; do
20- timeout=$((timeout - 1))
21- if [ $timeout -le 0 ]; then
22- echo "Service failed to start within 5 minutes"
23- exit 1
24- fi
25- sleep 1
26- done
27- working-directory : test
28- cypress-command : npx cypress run --config pageLoadTimeout=100000,baseUrl=http://localhost:8089
29- post-steps :
30- - run :
31- name : Tear down Docker Compose services
32- command : docker-compose down
33- when : always
34- filters :
35- branches :
36- only :
37- - main
20+ - run-cypress-in-specified-node-version :
21+ name : Run Cypress in Node 20
22+ cypress-cache-key : >-
23+ cypress-cache-{{ arch }}-{{ checksum "libs/shared-ui/package.json"}}
You can’t perform that action at this time.
0 commit comments