Browse Source

cachepath5

main
pdarcas 6 years ago
parent
commit
375410f22b
  1. 18
      .circleci/config.yml

18
.circleci/config.yml

@ -6,36 +6,36 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-V1-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- save_cache: - save_cache:
key: yarn-V1-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ~/.node_modules
- ./node_modules
lint: lint:
docker: docker:
- image: "circleci/node:12" # the primary container, where your job's commands are run - image: "circleci/node:12" # the primary container, where your job's commands are run
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-V2-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check - run: yarn lint && yarn format:check
- save_cache: - save_cache:
key: yarn-V2-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ~/.node_modules
- ./node_modules
test: test:
docker: docker:
- image: "circleci/node:12" # the primary container, where your job's commands are run - image: "circleci/node:12" # the primary container, where your job's commands are run
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-V3-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
- run: yarn test:ci - run: yarn test:ci
- save_cache: - save_cache:
key: yarn-V3-packages-{{ checksum "yarn.lock" }}
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ~/.node_modules
- ./node_modules
workflows: workflows:
build: build:
jobs: jobs:

Loading…
Cancel
Save