From 5d4095b591ea312b3f0f5b680d9e3ed06d7185d3 Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 15:25:39 +0100 Subject: [PATCH] try cache shared-config --- .circleci/config.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d0024f7..437378a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,34 +17,16 @@ jobs: - ./node_modules lint: - docker: - - image: cimg/node:14.10.1 + <<: *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" }} - paths: - - ./node_modules + unit-test: - docker: - - image: cimg/node:14.10.1 + <<: *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" }} - paths: - - ./node_modules - workflows: build_and_test: jobs: