Commit 038e94e6 authored by Dylan Vann's avatar Dylan Vann

Add caching on CircleCI.

parent 069d71bc
version: 2
jobs:
build:
docker:
- image: node:9.2.0
working_directory: ~/app
steps:
- checkout
- run: yarn
- run: yarn test
\ No newline at end of file
build:
docker:
- image: 'circleci/node:latest'
steps:
- checkout
- restore_cache:
keys:
- yarn-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-v1-{{ .Branch }}-
- yarn-v1-
- run:
name: install
command: yarn install
- run:
name: test
command: yarn run test
- save_cache:
paths:
- ~/.cache/yarn
key: yarn-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment