1 | version: 2
|
2 | jobs:
|
3 | build:
|
4 | docker:
|
5 | - image: circleci/node:latest
|
6 |
|
7 | working_directory: ~/repo
|
8 |
|
9 | steps:
|
10 | - checkout
|
11 |
|
12 | # Download and cache dependencies
|
13 | - restore_cache:
|
14 | keys:
|
15 | - v1-dependencies-{{ checksum "package.json" }}
|
16 | # fallback to using the latest cache if no exact match is found
|
17 | - v1-dependencies-
|
18 |
|
19 | - run: yarn install
|
20 | - run: yarn test
|
21 | - run: yarn coverage |
\ | No newline at end of file |