From 2297ebc2ca520c3e97cd835f7a6a3bc385678c6e Mon Sep 17 00:00:00 2001 From: Logan Date: Thu, 5 Nov 2020 19:05:32 +0100 Subject: [PATCH] Add lint and test jobs --- .circleci/config.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d8c3cd..88374f0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,10 +13,33 @@ jobs: paths: - ./node_modules key: npm-v1-dependencies-{{ checksum "yarn.lock" }} - + lint: + docker: *docker + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn lint && yarn format:check + test: + docker: *docker + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:ci + + workflows: version : 2 build_wokflow: jobs: - - build \ No newline at end of file + - build + - lint: + requires: + - build + - test: + requires: + - build \ No newline at end of file