-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathconfig.yml
More file actions
96 lines (93 loc) · 2.07 KB
/
config.yml
File metadata and controls
96 lines (93 loc) · 2.07 KB
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
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
aliases:
- &defaults
working_directory: /tmp/react-async
docker:
- image: circleci/node:10
jobs:
build:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore root dependencies from cache
keys:
- root-dependencies-v1-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: yarn install
- run:
name: Bootstrap
command: yarn bootstrap
- save_cache:
name: Cache root dependencies
key: root-dependencies-v1-{{ checksum "package.json" }}
paths:
- ~/.cache/yarn
- run: yarn build:packages
- persist_to_workspace:
root: .
paths:
- node_modules
- packages
lint:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: yarn lint
test:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run:
command: yarn test
- persist_to_workspace:
root: .
paths:
- coverage
coverage:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: bash <(curl -s https://codecov.io/bash)
chromatic:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: |
if [[ "${CIRCLE_BRANCH}" == renovate/* ]]; then
echo "Skipping Chromatic"
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
yarn test:chromatic --auto-accept-changes
else
yarn test:chromatic
fi
workflows:
version: 2
build_test_deploy:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
- coverage:
requires:
- test
- chromatic:
requires:
- build