MTLantoine 6 years ago
parent
commit
728aa7bd7a
  1. 22
      .circleci/config.yml

22
.circleci/config.yml

@ -2,26 +2,24 @@ version: 2.1
jobs: jobs:
build: build:
docker: &shared_docker docker: &shared_docker
- image: circleci/node:12
- 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: 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" }}
- save_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths: ./node_modules/
- 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:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
keys: npm-v1-dependencies-{{ checksum "yarn.lock" }}
keys:
- 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:
@ -55,10 +53,6 @@ workflows:
build_test: build_test:
jobs: jobs:
- build - build
- lint:
requires:
- build
- test:
requires:
- build
- lint
- test
# - e2e_test # - e2e_test
Loading…
Cancel
Save