Skip to content

Commit c4f3c1c

Browse files
committed
trying from orb again
1 parent 3957457 commit c4f3c1c

File tree

1 file changed

+19
-33
lines changed

1 file changed

+19
-33
lines changed

.circleci/config.yml

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,23 @@
11
version: 2.1
2-
32
orbs:
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
617
workflows:
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"}}

0 commit comments

Comments
 (0)