Skip to content

Commit

Permalink
fix(): restore cache for deploy and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz committed Dec 19, 2017
1 parent d95ac1e commit eff4987
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,20 @@ jobs:
- packages/lib-js-test/node_modules
key: v1-dependencies-test-{{ checksum "packages/lib-js-test/package.json" }}

- save_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo

test:
docker:
- image: circleci/node:latest

working_directory: ~/repo

steps:
- build
- restore_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn run lint
- run: yarn run test:unit
- run: yarn run test:e2e
Expand All @@ -93,6 +99,8 @@ jobs:
working_directory: ~/repo

steps:
- restore_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run: lerna publish --canary
- run: npx s deploy
- run: npx s hosting sync docs
Expand Down

0 comments on commit eff4987

Please sign in to comment.