-
Notifications
You must be signed in to change notification settings - Fork 413
/
config.yml
104 lines (103 loc) · 2.45 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: 2.1
executors:
node-v16:
docker:
- image: circleci/node:16
working_directory: ~/linaria
node-v14:
docker:
- image: circleci/node:14
working_directory: ~/linaria
commands:
install-dependencies:
steps:
- checkout
- attach_workspace:
at: ~/linaria
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}
- dependencies-
- restore_cache:
keys:
- dependencies-website-{{ checksum "website/package.json" }}
- dependencies-website-
- run: |
yarn install --frozen-lockfile
- save_cache:
key: dependencies-{{ checksum "package.json" }}
paths: node_modules
- save_cache:
key: dependencies-website-{{ checksum "website/package.json" }}
paths: website/node_modules
- persist_to_workspace:
root: .
paths: .
lint-and-typecheck:
steps:
- attach_workspace:
at: ~/linaria
- run: |
yarn test:dts
yarn typecheck
yarn lint
unit-tests:
steps:
- attach_workspace:
at: ~/linaria
- run: |
yarn test
unit-tests-and-coverage:
steps:
- attach_workspace:
at: ~/linaria
- run: |
yarn test:coverage
cat ./packages/*/coverage/lcov.info | ./node_modules/.bin/codecov
bash .circleci/comment-artifacts.sh
- store_artifacts:
path: coverage
destination: coverage
lint-website:
steps:
- attach_workspace:
at: ~/linaria
- run: |
yarn prepare
yarn --cwd website lint:css
jobs:
install-dependencies:
executor: node-v16
steps:
- install-dependencies
lint-and-typecheck:
executor: node-v16
steps:
- lint-and-typecheck
lint-website:
executor: node-v16
steps:
- lint-website
unit-tests-and-coverage:
executor: node-v16
steps:
- unit-tests-and-coverage
unit-tests-node-v14:
executor: node-v14
steps:
- install-dependencies
- unit-tests
workflows:
multiple_builds:
jobs:
- install-dependencies
- lint-and-typecheck:
requires:
- install-dependencies
- lint-website:
requires:
- install-dependencies
- unit-tests-and-coverage:
requires:
- install-dependencies
- unit-tests-node-v14