From 306b93523ab5d4ec835d76083732aa2316a0fa0a Mon Sep 17 00:00:00 2001 From: "bigopon.777@gmail.com" Date: Sun, 20 Jan 2019 10:28:12 +1100 Subject: [PATCH] fix(ci): update ci config --- .circleci/config.yml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 79f42c60..e497882f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,27 @@ version: 2.1 -##### -# Circle CI -# -# For running docker images on circle ci, see: https://circleci.com/docs/docker -# For circle.yml explanation, see: https://circleci.com/docs/manually -##### -machine: - node: - version: 6.4.0 +executors: + docker-circleci: + working_directory: "~/repo" + docker: + - image: "circleci/node:10.12-stretch-browsers" + +jobs: + unit_test: + executor: docker-circleci + steps: + - checkout + - run: npm ci + - run: npm test + prepare_release: + executor: docker-circleci + steps: + - checkout + - run: npm ci + - run: npm build + +workflows: + build_test: + jobs: + - unit_test + - prepare_release