File tree Expand file tree Collapse file tree 1 file changed +7
-30
lines changed Expand file tree Collapse file tree 1 file changed +7
-30
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
-
3
2
orbs :
4
- cypress : cypress-io/cypress@3.4.2
3
+ cypress : cypress-io/cypress@3
5
4
6
5
workflows :
7
- test-workflow :
6
+ test :
8
7
jobs :
9
8
- 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
9
+ name : Run Cypress in Node 20
10
+ cypress-command : npx wait-on@latest http://localhost:8089 && npx cypress run
11
+ start-command : bash ./up_github.sh
27
12
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
13
+ cypress-cache-key : >-
14
+ cypress-cache-{{ arch }}-{{ checksum "libs/shared-ui/package.json"}}
You can’t perform that action at this time.
0 commit comments