MTLantoine 6 years ago
parent
commit
cf96f44612
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -1,17 +1,16 @@
version: 2.1 version: 2.1
jobs: jobs:
build: build:
docker: &shared_docker 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: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
keys: keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
lint: lint:
docker: *shared_docker docker: *shared_docker
steps: steps:
@ -20,6 +19,7 @@ jobs:
keys: keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install && yarn lint && yarn format:check - run: yarn global add node-gyp && yarn install && yarn lint && yarn format:check
test: test:
docker: *shared_docker docker: *shared_docker
steps: steps:
@ -28,6 +28,8 @@ jobs:
keys: keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }} - npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install && yarn test:ci - run: yarn global add node-gyp && yarn install && yarn test:ci
workflows: workflows:
version: 2 version: 2
build_test: build_test:

Loading…
Cancel
Save