From a0d0df2d6dd84f37e017c778dfc9f34fee37c28b Mon Sep 17 00:00:00 2001 From: Neel Coffin Date: Mon, 2 Nov 2020 15:14:39 +0100 Subject: [PATCH] back to step3 --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1f7805..d0024f7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,11 @@ version: 2.1 jobs: - build: + build: &shared-config docker: - image: cimg/node:14.10.1 steps: - checkout + - restore_cache: name: restore yarn package cache key: yarn-packages-v2{{ checksum "yarn.lock" }} @@ -14,6 +15,7 @@ jobs: key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - ./node_modules + lint: docker: - image: cimg/node:14.10.1 @@ -27,7 +29,7 @@ jobs: name: save yarn package cache key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - - ./node_modules + - ./node_modules unit-test: docker: - image: cimg/node:14.10.1 @@ -42,6 +44,7 @@ jobs: key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - ./node_modules + workflows: build_and_test: jobs: @@ -52,6 +55,3 @@ workflows: - lint: requires: - build - - -