From 43a806959e956b3bb707634caf0eb80d71fab18f Mon Sep 17 00:00:00 2001 From: MTLantoine Date: Tue, 3 Nov 2020 18:25:09 +0100 Subject: [PATCH] . --- .circleci/config.yml | 76 ++++++++++---------------------------------- 1 file changed, 16 insertions(+), 60 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7993197..17e7fd4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,81 +1,37 @@ -# version: 2.1 -# jobs: -# build: -# docker: &shared_docker -# - image: circleci/node:12 -# steps: -# - checkout # check out the code in the project directory -# - 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 - -# job2: -# docker: *shared_docker -# steps: -# - checkout -# - restore_cache: -# keys: -# - npm-v1-dependencies-{{ checksum "yarn.lock" }} -# - run: echo Hello World ! - -# workflows: -# version: 2 -# build_test: -# jobs: -# - build -# - job2 - - -version: 2 +version: 2.1 jobs: build: - docker: &docker - - image: circleci/node:12 - + docker: &shared_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 steps: - - checkout + - checkout # check out the code in the project directory - 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: - docker: *docker - + docker: *shared_docker steps: - - checkout + - checkout # check out the code in the project directory - restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn lint && yarn format:check - + - run: yarn global add node-gyp && yarn install && yarn lint && yarn format:check test: - docker: *docker - + docker: *shared_docker steps: - - checkout + - checkout # check out the code in the project directory - restore_cache: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - - run: yarn test:ci - + - run: yarn global add node-gyp && yarn install && yarn test:ci workflows: version: 2 - build-and-test: + build_test: jobs: - build - - lint: - requires: - - build - - test: - requires: - - build \ No newline at end of file + - lint + - test \ No newline at end of file