From 68f58786d87df34345b75dd48ad0bdcd74e23f2e Mon Sep 17 00:00:00 2001 From: Gautier couture <2017566295@lacatholille.fr> Date: Mon, 2 Nov 2020 10:18:26 +0100 Subject: [PATCH] lint step --- .circleci/config.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index db3d9cc..f8de82e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,4 @@ +workflows: version: 2.1 jobs: build: @@ -5,11 +6,25 @@ jobs: - image: cimg/node:14.10.1 # the primary container, where your job's commands are run steps: - checkout # check out the code in the project directory - - run: yarn global add node-gyp - - run: yarn install - restore_cache: key: yarn-packages-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + - run: yarn lint && yarn format:check + - run: yarn test:ci - save_cache: key: yarn-packages-{{ checksum "yarn.lock" }} paths: - - ~/.cache/yarn + - ./node_modules + install: + requires: + - build + steps: + - checkout + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + - run: yarn lint && yarn format:check + - run: yarn test:ci + - save_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ./node_modules