From 7a67c96ed42eecbad9889069ad1e5df423412a6e Mon Sep 17 00:00:00 2001 From: Adrien-Ba Date: Mon, 11 Oct 2021 09:20:12 +0200 Subject: [PATCH] Cache + install yarn --- .circleci/config.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a67c04..9accdb7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,20 @@ version: 2.1 + jobs: build: machine: image: ubuntu-2004:202010-01 steps: + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - npm-v1-dependencies - checkout - run: - name: "Hello World !" - command: echo "Hello World !" \ No newline at end of file + name: "install step" + command: yarn install --path install/yarn + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + paths: + - install/yarn + \ No newline at end of file