From 3df5351578541f1fa07d0d98a8c356b03232ddb6 Mon Sep 17 00:00:00 2001 From: shootylife Date: Mon, 2 Nov 2020 11:21:09 +0100 Subject: [PATCH] feat: config.yml --- .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..235db74 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,40 @@ +version: 2.1 +worflows: + workflow: + jobs: + - build + - lint + - test +jobs: + build: &shared-config + docker: + - image: cimg/node:14.10.1 + auth: + username: mydockerhub-user + password: $DOCKERHUB_PASSWORD + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn global add node-gyp && yarn install + - save_cache: + key: npm-v1-dependencies-{{ checksum "yarn.lock" }} + paths: + - ./node_modules + lint: + <<: *shared-config + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn lint && yarn format:check + test: + <<: *shared-config + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn test:ci