-
Notifications
You must be signed in to change notification settings - Fork 504
/
config.yml
48 lines (39 loc) · 952 Bytes
/
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
version: 2
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node
jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: Install
command: yarn install --frozen-lockfile
- run:
name: Build
command: yarn build
- run:
name: Lint
command: yarn lint:post-build
- run:
name: Run tests
command: yarn test --runInBand --no-cache --coverage
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
- persist_to_workspace:
root: ~/repo
paths: .
workflows:
version: 2
test-deploy:
jobs:
- test