From fc4cc03cdf050c29e47ffb094d38e19aa920bd09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20GAUTREAU?= Date: Mon, 2 Nov 2020 10:05:50 +0100 Subject: [PATCH] restore cache --- .circleci/config.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 863746f..14a0220 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,17 +1,27 @@ version: 2.1 +workflows: + workflow1: + jobs: + - hello + - yarn1 + jobs: - build: + hello: docker: - - image: cimg/node:14.10.1 # the primary container, where your job's commands are run - auth: - username: mydockerhub-user - password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + - image: cimg/node:14 # the primary container, where your job's commands are run + steps: + - checkout + - run: echo "Hello World" + yarn1: + docker: + - image: cimg/node:14 # the primary container, where your job's commands are run steps: - checkout # check out the code in the project directory - restore_cache: - keys: - - npm-v1-dependencies-{{ checksum "yarn.lock" }} + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + - save_cache: key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - \ No newline at end of file + paths: ./node_modules \ No newline at end of file