From 678ef66c65ba679d9eb5974e046d4b85a2d0bbfb Mon Sep 17 00:00:00 2001 From: Morgan <47953421+MorganLmd@users.noreply.github.com> Date: Mon, 2 Nov 2020 10:02:35 +0100 Subject: [PATCH] test cache et yarn install --- .circleci/config.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 554bb0b..8991f63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,20 @@ version: 2.1 orbs: win: circleci/windows@2.2.0 +commands: + restore_cache_cmd: + steps: + - restore_cache: + key: + npm-v1-dependencies-{{ checksum "yarn.lock" }} + save_cache_cmd: + steps: + - save_cache: + paths: + - ~/.m2 + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + + jobs: build: executor: @@ -12,4 +26,6 @@ jobs: steps: - checkout - - run: Write-Host 'Hello World !!!!' \ No newline at end of file + - restore_cache_cmd + - run: yarn global add node-gyp && yarn install + - save_cache_cmd \ No newline at end of file