From f536b9aa617f42c084d776bf2fc979a76e701ecb Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 24 Aug 2018 16:35:42 +0200 Subject: [PATCH] :green_heart: circle-ci 2.0 --- circle.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index d24b38b70..f1c3c1e2f 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,26 @@ -machine: - node: - version: 8.10.0 -dependencies: - override: - - yarn install --dev - - yarn run flow-typed install \ No newline at end of file +version: 2 +jobs: + build: + working_directory: ~/mern-starter + docker: + - 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" }} + - run: + name: install-yarn-wee + command: yarn + - run: + name: install-flow-typed-wee + command: yarn run flow-typed install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: test + command: yarn test