forked from busyorg/busy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
40 lines (40 loc) · 993 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
38
39
40
version: 2
general:
artifacts:
- "yarn-error.log"
jobs:
build:
working_directory: ~/busy
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
name: Restore node_modules cache
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: Node version
command: node --version
- run:
name: Install packages
command: yarn install
- run:
name: lint
command: npm run lint
- run:
name: prettier
command: npm run prettier-check-all
- run:
name: test
command: npm run test
- run:
name: code-coverage
command: npm run test:coverage
- store_artifacts:
path: coverage
prefix: coverage
- save_cache:
name: Save node_modules cache
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules