Browse Source

added yarn cache

pull/2/head
Neel Coffin 6 years ago
parent
commit
9f111b90a4
  1. 14
      .circleci/config.yml

14
.circleci/config.yml

@ -17,15 +17,25 @@ jobs:
- ./node_modules
lint:
<<: *shared-config
steps:
- checkout
- restore_cache:
name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
- save_cache:
name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
unit-test:
<<: *shared-config
steps:
- checkout
- restore_cache:
name: restore yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn test:ci
- save_cache:
name: save yarn package cache
key: yarn-packages-v2{{ checksum "yarn.lock" }}
workflows:
build_and_test:

Loading…
Cancel
Save