From fd35a732297422384bedea4b44d75326b74ceea8 Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 11 Oct 2017 19:04:22 +1100 Subject: [PATCH 1/3] Add circle ci config --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..d556bfad --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,13 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:latest + steps: + - checkout + - run: + name: Install + command: npm install + - run: + name: Check Prettier, ESLint, Flow + command: npm run ci-check From 76d431df43724c35f388fb551e59446f0600d6b6 Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 11 Oct 2017 21:18:21 +1100 Subject: [PATCH 2/3] Add caching to circle config --- .circleci/config.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d556bfad..e3f9bdf5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,9 +5,18 @@ jobs: - image: circleci/node:latest steps: - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- - run: name: Install - command: npm install + command: yarn install + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} - run: name: Check Prettier, ESLint, Flow - command: npm run ci-check + command: yarn ci-check From 086322a7217d7d5416ad986ad9f6b8b25db5252a Mon Sep 17 00:00:00 2001 From: jxom Date: Wed, 11 Oct 2017 21:18:59 +1100 Subject: [PATCH 3/3] Update circle config --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e3f9bdf5..16c83a61 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,16 +7,16 @@ jobs: - checkout - restore_cache: keys: - - v1-dependencies-{{ checksum "package.json" }} + - dependencies-{{ checksum "package.json" }} # fallback to using the latest cache if no exact match is found - - v1-dependencies- + - dependencies- - run: name: Install command: yarn install - save_cache: paths: - node_modules - key: v1-dependencies-{{ checksum "package.json" }} + key: dependencies-{{ checksum "package.json" }} - run: name: Check Prettier, ESLint, Flow command: yarn ci-check