From 33aabb7e88f739de8ec7903f7a4d1d3ba860e601 Mon Sep 17 00:00:00 2001 From: LecomteAdrien Date: Mon, 2 Nov 2020 11:13:19 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b14c79..d64e798 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,34 +1,34 @@ -workflows: version: 2.1 +workflows: + build_and_test: jobs: - - install - - test: + - build + - tests: requires: - - install - + - build jobs: - build: install + build: docker: - - image: cimg/node:14.10.1 # the primary container, where your job's commands are run - + - image: cimg/node:14.10.1 steps: - - checkout + - checkout - restore_cache: - key: yarn-packages-{{ checksum "yarn.lock" }} + key: yarn-packages-v2{{ checksum "yarn.lock" }} - run: yarn global add node-gyp && yarn install - - save_cache: - key: yarn-packages-{{ checksum "yarn.lock" }} + key: yarn-packages-v2{{ checksum "yarn.lock" }} paths: - - ~/.cache/yarn - test: - steps: + - ./node_modules + tests: + docker: + - image: cimg/node:14.10.1 + 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" }} + - 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