diff --git a/.circleci/config.yml b/.circleci/config.yml index 17e7fd4..76432d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,17 +1,16 @@ version: 2.1 jobs: + build: 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 + - 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 + lint: docker: *shared_docker steps: @@ -20,6 +19,7 @@ jobs: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn global add node-gyp && yarn install && yarn lint && yarn format:check + test: docker: *shared_docker steps: @@ -28,6 +28,8 @@ jobs: keys: - npm-v1-dependencies-{{ checksum "yarn.lock" }} - run: yarn global add node-gyp && yarn install && yarn test:ci + + workflows: version: 2 build_test: