forked from cypress-io/cypress-example-todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
54 lines (50 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
53
54
# run Cypress tests using CircleCI Cypress orb
# https://github.com/cypress-io/circleci-orb
version: 2.1
orbs:
cypress: cypress-io/cypress@1
# for testing on Windows
# https://circleci.com/docs/2.0/hello-world-windows/
win: circleci/windows@1
executors:
node12-lts:
docker:
- image: cypress/base:12
mac:
macos:
xcode: "10.1.0"
jobs:
lint:
executor: node12-lts
steps:
- attach_workspace:
at: ~/
- run: npm run types
- run: npm run lint
workflows:
build:
jobs:
- cypress/run:
executor: node12-lts
name: Linux test
record: true
start: npm start
- cypress/run:
name: Mac test
executor: mac
record: true
start: npm start
# no need to save the workspace after this job
no-workspace: true
- lint:
requires:
- Linux test
- cypress/run:
name: Windows test
executor:
name: win/vs2019
shell: bash.exe
record: true
start: npm start
# no need to save the workspace after this job
no-workspace: true