From 9c7e76676416275df810f6ba9204582015694007 Mon Sep 17 00:00:00 2001 From: Francois Lannoy Date: Mon, 2 Nov 2020 11:18:16 +0100 Subject: [PATCH] splitted test and lint into 2 jobs --- .circleci/config.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d64e798..3c7a6d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,9 @@ workflows: build_and_test: jobs: - build + - lint: + requires: + - build - tests: requires: - build @@ -26,9 +29,21 @@ jobs: - checkout - restore_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} - - run: yarn lint && yarn format:check - run: yarn test:ci - save_cache: key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - - ./node_modules \ No newline at end of file + - ./node_modules + lint: + docker: + - image: cimg/node:14.10.1 + steps: + - checkout + - restore_cache: + key: yarn-packages-v2{{ checksum "yarn.lock" }} + - run: yarn lint && yarn format:check + - save_cache: + key: yarn-packages-v2{{ checksum "yarn.lock" }} + paths: + - ./node_modules +