forked from cypress-io/cypress-skip-test
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
42 lines (40 loc) · 1.29 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/run:
name: Cypress v4 tests
executor: cypress/browsers-chrome78-ff70
no-workspace: true
cache-key: 'cache-cypress-v4'
post-install:
- run: npm install cypress@4
- run: npx cypress info
post-steps:
# execute full tests
- run: npm run e2e
- cypress/run:
name: Cypress tests
executor: cypress/browsers-chrome78-ff70
post-install:
# print info about OS and found browsers
- run: npx cypress info
post-steps:
# execute full tests
- run: npm run e2e
# this job attaches the workspace left by the install job
# so it is ready to run Cypress tests
# only we will run semantic release script instead
- cypress/run:
name: NPM release
# we need newer Node for semantic release
executor: cypress/base-12-6-0
requires:
- Cypress v4 tests
- Cypress tests
install-command: echo 'Nothing to install in this job'
no-workspace: true
# instead of "cypress run" do NPM release 😁
command: npm run semantic-release