Skip to content

Commit e396d9f

Browse files
author
Jean-Michel Leclercq
committed
fix(ci): upgrade circleci cypress orb version
1 parent 5cb72d6 commit e396d9f

File tree

1 file changed

+9
-45
lines changed

1 file changed

+9
-45
lines changed

circle.yml

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,35 @@
11
version: 2.1
22
orbs:
33
# https://github.com/cypress-io/circleci-orb
4-
cypress: cypress-io/cypress@1
5-
6-
executors:
7-
with-ff:
8-
docker:
9-
- image: 'cypress/browsers:node18.12.0-chrome103-ff107'
4+
cypress: cypress-io/cypress@3
105

116
workflows:
127
build:
138
jobs:
14-
# first, run a single job to install dependencies and Cypress
15-
# and perform a few more small steps like linting
16-
- cypress/install:
17-
name: Install
18-
build: npm run build
19-
post-steps:
20-
- run:
21-
name: Show info 📺
22-
command: npx cypress info
23-
# catch accidental "it.only" tests
24-
- run:
25-
name: Catch accidental "it.only" 🖐
26-
command: npm run stop-only
27-
28-
# reuse the workspace from the install job
299
# to run end-to-end tests in Electron browser
3010
- cypress/run:
3111
name: Electron test
32-
requires:
33-
- Install
34-
install-command: echo 'Nothing to install in this job'
35-
# to run tests, we need to start the web application
36-
start: npm start
37-
wait-on: 'http://localhost:3003'
38-
no-workspace: true
39-
store_artifacts: true
12+
post-install: npm run build
13+
start-command: npm start
14+
cypress-command: "npx wait-on@latest http://localhost:3003 && npx cypress run"
4015

41-
# reuse the workspace from the install job
4216
# to run end-to-end tests in Firefox browser
4317
- cypress/run:
4418
name: Firefox test
45-
executor: with-ff
46-
requires:
47-
- Install
48-
install-command: echo 'Nothing to install in this job'
49-
# to run tests, we need to start the web application
50-
start: npm start
51-
wait-on: 'http://localhost:3003'
52-
# run tests using Firefox browser pre-installed in the executor image
53-
browser: firefox
54-
no-workspace: true
55-
store_artifacts: true
19+
install-browsers: true
20+
post-install: npm run build
21+
start-command: npm start
22+
cypress-command: "npx wait-on@latest http://localhost:3003 && npx cypress run --browser firefox"
5623

5724
# wait for all jobs to finish and possible run NPM release
5825
- cypress/run:
5926
name: NPM release
60-
executor: with-ff
6127
requires:
62-
- Install
6328
- Electron test
6429
- Firefox test
6530
# nothing to install - cypress/install job does it
6631
# and nothing to pass to the next job
6732
install-command: echo 'Nothing to install in this job'
68-
no-workspace: true
6933
# instead of "cypress run" do NPM release 😁
70-
command: npm run semantic-release
34+
cypress-command: npm run semantic-release
7135

0 commit comments

Comments
 (0)