From 5a5d6f68149e21969af90da76d08ce79e687b931 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 29 Aug 2018 18:34:07 +0200 Subject: [PATCH] :green_heart: :bug: yarn is preinstall in circle ci 2.0 --- circle.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/circle.yml b/circle.yml index f1c3c1e2f..848c06174 100644 --- a/circle.yml +++ b/circle.yml @@ -6,21 +6,21 @@ jobs: - image: circleci/node:8.10.0 steps: - checkout - - run: - name: install-yarn - command: 'sudo npm install -g yarn' - restore_cache: - key: dependency-cache-{{ checksum "package.json" }} + name: Restore Yarn Package Cache + keys: + - yarn-packages-{{ checksum "yarn.lock" }} - run: - name: install-yarn-wee - command: yarn - - run: - name: install-flow-typed-wee - command: yarn run flow-typed install + name: Install Dependencies + command: yarn install - save_cache: - key: dependency-cache-{{ checksum "package.json" }} + name: Save Yarn Package Cache + key: yarn-packages-{{ checksum "yarn.lock" }} paths: - - ./node_modules + - ~/.cache/yarn + - run: + name: Install flow-typed + command: yarn run flow-typed install - run: name: test command: yarn test