Browse Source

Add lint and test jobs

main
Logan 6 years ago
parent
commit
2297ebc2ca
  1. 27
      .circleci/config.yml

27
.circleci/config.yml

@ -13,10 +13,33 @@ jobs:
paths: paths:
- ./node_modules - ./node_modules
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
lint:
docker: *docker
steps:
- checkout
- restore_cache:
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
test:
docker: *docker
steps:
- checkout
- restore_cache:
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:ci
workflows: workflows:
version : 2 version : 2
build_wokflow: build_wokflow:
jobs: jobs:
- build
- build
- lint:
requires:
- build
- test:
requires:
- build
Loading…
Cancel
Save