diff options
ci - restore node_modules before test
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index eca87ea5b..06506c680 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,12 +19,12 @@ jobs: name: Update npm command: 'sudo npm install -g npm@latest' - restore_cache: - key: dependency-cache-{{ checksum "package.json" }} + key: dependency-cache-{{ checksum "package-lock.json" }} - run: name: Install npm command: npm install - save_cache: - key: dependency-cache-{{ checksum "package.json" }} + key: dependency-cache-{{ checksum "package-lock.json" }} paths: - node_modules test: @@ -32,6 +32,8 @@ jobs: - image: circleci/node:8-browsers steps: - checkout + - restore_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} - run: name: Test command: npm test |