UNPKG

679 BYAMLView Raw
1version: 2
2jobs:
3 build:
4 working_directory: ~/app
5 docker:
6 - image: circleci/node:8.10.0
7 steps:
8 - checkout
9 - restore_cache:
10 keys:
11 # Find a cache corresponding to this specific package.json checksum
12 # when this file is changed, this key will fail
13 - v1-npm-deps-{{ arch }}-{{ checksum "yarn.lock" }}
14 # Find the most recent cache used from any branch
15 - v1-npm-deps-{{ arch }} # used if above checksum fails
16 - run: yarn
17 - save_cache:
18 key: v1-npm-deps-{{ arch }}-{{ checksum "yarn.lock" }}
19 paths:
20 - node_modules
21 - run: yarn run check