Skip to content

Commit 3af1833

Browse files
committed
trying from orb again
1 parent 3957457 commit 3af1833

File tree

1 file changed

+7
-30
lines changed

1 file changed

+7
-30
lines changed

.circleci/config.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
11
version: 2.1
2-
32
orbs:
4-
cypress: cypress-io/cypress@3.4.2
3+
cypress: cypress-io/cypress@3
54

65
workflows:
7-
test-workflow:
6+
test:
87
jobs:
98
- 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
2712
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"}}

0 commit comments

Comments
 (0)