From b2eefe1ebe9558eaed54862dd8ee23cf43cea44a Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Thu, 14 Mar 2019 13:31:35 +0100 Subject: [PATCH] Cache build env for node 8 --- .circleci/config.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index feac26c..e7c4fd3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,14 @@ jobs: - image: circleci/node:8 steps: - checkout + - restore_cache: + keys: + - npm-deps-{{ checksum "package-lock.json" }} - run: npm install + - save_cache: + key: npm-deps-{{ checksum "package-lock.json" }} + paths: + - node_modules/ - run: npm test - run: npm run coverage @@ -43,9 +50,9 @@ jobs: workflows: version: 2 - node6_node8_node10: + ci: jobs: - node6 - node8 - node10 - \ No newline at end of file +