Update CircleCI to test first

This commit is contained in:
2018-04-28 09:52:30 +01:00
parent 33ddd5f966
commit 387d6a770e

View File

@@ -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