From 45e4bfce014543cc49df940b3f0c1185b5fafcbf Mon Sep 17 00:00:00 2001 From: NicolasLepinette Date: Sun, 28 Mar 2021 10:35:56 +0200 Subject: [PATCH] u --- .circleci/config.yml | 45 +++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 774c671..98cc1d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,18 +1,41 @@ -version: 2.1 -jobs: - build: +workflows: + starter: + jobs: + - yarn + install: + jobs: + - yarn + - checks: + requires: + - yarn + + tests: + jobs: + - checks + yarn: docker: - - image: 'circleci/node:12' # the primary container, where your job's commands are run + - image: circleci/node:12 steps: - - checkout # check out the code in the project directory + - checkout - restore_cache: - key: yarn-packages-{{checksum "yarn.lock"}} - - run: - name: install node - command: yarn global add node-gyp && yarn install + key: yarn-packages-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + - save_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ./node_modules + + checks: + docker: + - image: circleci/node:12 + steps: + - checkout + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + - run: yarn lint - run: yarn format:check - run: yarn test:ci - save_cache: - key: yarn-packages-{{checksum "yarn.lock"}} + key: yarn-packages-{{ checksum "yarn.lock" }} paths: - - ./node_module \ No newline at end of file + - ./node_modules \ No newline at end of file