-
Notifications
You must be signed in to change notification settings - Fork 106
/
config.yml
67 lines (63 loc) · 1.42 KB
/
config.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
55
56
57
58
59
60
61
62
63
64
65
66
step-restore-cache: &step-restore-cache
restore_cache:
keys:
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- v1-dependencies-{{ arch }}
steps-test: &steps-test
steps:
- run: git config --global core.autocrlf input
- checkout
- *step-restore-cache
- run: yarn --frozen-lockfile
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn build:docs
version: 2.1
orbs:
win: circleci/windows@1.0.0
jobs:
test-linux-8:
docker:
- image: circleci/node:8
<<: *steps-test
test-linux-10:
docker:
- image: circleci/node:10
<<: *steps-test
test-mac:
macos:
xcode: "13.0.0"
<<: *steps-test
test-windows:
executor:
name: win/vs2019
shell: bash.exe
<<: *steps-test
release:
docker:
- image: circleci/node:14.17
steps:
- checkout
- *step-restore-cache
- run: yarn
- run: npx semantic-release@17.4.5
workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test-linux-12
- test-mac
- test-windows
- release:
requires:
- test-linux-12
- test-mac
- test-windows
filters:
branches:
only:
- main