-
Notifications
You must be signed in to change notification settings - Fork 505
/
Copy pathcircle.yml
54 lines (50 loc) · 1.16 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
win: circleci/windows@5
executors:
node20-lts:
docker:
- image: cypress/base:20.11.1
mac:
macos:
xcode: "15.3.0"
resource_class: macos.m1.medium.gen1
jobs:
lint:
executor: node20-lts
steps:
- attach_workspace:
at: ~/
- run: npm run types
- run: npm run lint
workflows:
build:
jobs:
- cypress/run:
executor: node20-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/default
shell: bash.exe
record: true
start: npm start
# no need to save the workspace after this job
no-workspace: true