-
Notifications
You must be signed in to change notification settings - Fork 172
/
config.yml
49 lines (45 loc) · 1.03 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
version: 2.1
executors:
node:
docker:
- image: circleci/node:14
commands:
save_yarn_cache:
description: Save cache for future build
steps:
- save_cache:
key: v1-yarn-deps-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
restore_yarn_cache:
description: Restore cache from previous build
steps:
- restore_cache:
keys:
- v1-yarn-deps-{{ checksum "yarn.lock" }}
jobs:
build:
executor: node
steps:
- checkout
- restore_yarn_cache
- run:
name: Install dependencies and build
command: yarn install --frozen-lockfile
- save_yarn_cache
- run:
name: Check License Headers
command: yarn check-license-headers
- run:
name: Check formatting
command: yarn format:check
- run:
name: Run linter
command: yarn lint
- run:
name: Run unit tests
command: yarn test
workflows:
build_and_test:
jobs:
- build