From 0a2ee246bd3fc7f4186f1d2f092ec3a132f67ca7 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Mon, 6 Nov 2017 10:21:56 -0200 Subject: [PATCH] Add tests to CircleCI --- .circleci/config.yml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5674badcb..36ee7fab0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,38 @@ defaults: &defaults version: 2 jobs: + test: + <<: *defaults + docker: + - image: circleci/node:8 + + environment: + CODECOV_TOKEN: caa771ab-3d45-4756-8e2a-e1f25996fef6 + + steps: + - checkout + + - run: + name: Install NPM modules + command: | + npm install + npm install codecov + + - run: + name: Lint + command: | + npm run lint + + - run: + name: Test + command: | + npm test + + - run: + name: Codecov + command: | + npx codecov + build: <<: *defaults docker: @@ -75,4 +107,7 @@ workflows: version: 2 build-and-test: jobs: - - build + - test + - build: + requires: + - test