-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
circle.yml
37 lines (36 loc) · 819 Bytes
/
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
version: 2
jobs:
test:
working_directory: ~/repo
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: v2-dependencies-{{ checksum "yarn.lock" }}
- run: yarn
- save_cache:
key: v2-dependencies-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run: yarn test
build:
working_directory: ~/repo
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: v2-dependencies-{{ checksum "yarn.lock" }}
- run: yarn
- save_cache:
key: v2-dependencies-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run: yarn build
workflows:
version: 2
build_and_test:
jobs:
- test
- build