Browse Source

Feat: lint v2

pull/1/merge
verzelea 6 years ago
parent
commit
c70ca7dc72
  1. 32
      .circleci/config.yml

32
.circleci/config.yml

@ -1,26 +1,34 @@
version: 2.1
workflows:
build_and_test:
jobs:
- build
- test:
requires:
- build
jobs:
build:
docker:
- image: cimg/node:14.10.1
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
steps:
- checkout
- checkout # check out the code in the project directory
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
check_format:
- ./node_modules
test:
docker:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
workflows:
build_and_test:
jobs:
- build
- check_format:
requires:
- build
- run: yarn test:ci
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
Loading…
Cancel
Save