Browse Source

lint_et_test

pull/1/merge
Straw-Etiam 6 years ago
parent
commit
5134cbbe34
  1. 30
      .circleci/config.yml

30
.circleci/config.yml

@ -6,6 +6,9 @@ workflows:
jobs: jobs:
- helloworld - helloworld
- install_yarn - install_yarn
- lint
- test
jobs: jobs:
helloworld: helloworld:
@ -16,10 +19,12 @@ jobs:
- run: echo "hello world" - run: echo "hello world"
install_yarn: install_yarn:
docker: docker:
- image: circleci/node:12 - image: circleci/node:12
steps: steps:
- checkout
- restore_cache: - restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }} key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp - run: yarn global add node-gyp
@ -28,5 +33,30 @@ jobs:
key: yarn-packages-{{ checksum "yarn.lock" }} key: yarn-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
lint:
docker:
- image: circleci/node:12
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn lint
- run: yarn format:check
test:
docker:
- image: circleci/node:12
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn test:ci
Loading…
Cancel
Save