From 387d6a770e4efe3129e1dce0944ef909a4671efb Mon Sep 17 00:00:00 2001 From: Dan Head Date: Sat, 28 Apr 2018 09:52:30 +0100 Subject: [PATCH] Update CircleCI to test first --- .circleci/config.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb0e687..850df02 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,17 @@ version: 2 jobs: - build: + test: + docker: + - image: circleci/node:8.11.1 + steps: + - checkout + - run: + name: Install dependencies + command: npm install + - run: + name: Run tests + command: npm test + build-latest: docker: - image: circleci/node:8.11.1 steps: @@ -9,3 +20,15 @@ jobs: - run: npm install - run: npm run build - run: bash deploy.sh +workflows: + version: 2 + build-latest: + jobs: + - test + - build-latest: + requires: + - test + filters: + branches: + only: + - master