From eb7572e0b53790d69b0b271b6c3b7a5675fba3b4 Mon Sep 17 00:00:00 2001 From: FONTAINE Pierre Date: Mon, 2 Nov 2020 10:17:34 +0100 Subject: [PATCH] 4. Install step --- .circleci/config.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2f6e37b..03a1ac3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,24 @@ version: 2.1 jobs: - build: + install: &shared-config docker: - image: cimg/node:14.10.1 # the primary container, where your job's commands are run auth: username: mydockerhub-user - password: $DOCKERHUB_PASSWORD # context / project UI env-var reference + password: $DOCKERHUB_PASSWORD # context / project UI env-var reference steps: - checkout # check out the code in the project directory - run: yarn global add node-gyp && yarn install + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn lint + - run: yarn test:ci + lint: + <<: *shared-config + steps: + - run: yarn lint && yarn format:check + test: + <<: *shared-config + steps: + - run: yarn test:ci \ No newline at end of file