From 585fedf3e4be42f107d7dae9a48bdc21b00256df Mon Sep 17 00:00:00 2001 From: NicolasLepinette <55684429+NicolasLepinette@users.noreply.github.com> Date: Mon, 2 Nov 2020 10:59:41 +0100 Subject: [PATCH] Add .circleci/config.yml --- .circleci/config.yml | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 59f4a24..0f883e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,34 +1,8 @@ version: 2.1 +orbs: + node: circleci/node@3.0.0 workflows: - build_and_test: + node-tests: jobs: - - build - - test: - requires: - - build -jobs: - build: - docker: - - image: cimg/node:14.10.1 - steps: - - checkout - - restore_cache: - 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 - test: - 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" }} - paths: - - ./node_modules + - node/test +