ci: add test job to CI

This commit is contained in:
unix
2020-04-14 19:11:09 +08:00
parent aa5eeed3e0
commit d05dee9d92
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
version: 2
jobs:
lint:
test:
docker:
- image: circleci/node:12.0
@@ -22,6 +22,7 @@ jobs:
key: v2-dependencies-{{ checksum "package.json" }}
- run: yarn run lint
- run: yarn run test
build:
docker:
@@ -49,5 +50,5 @@ workflows:
version: 2
build_and_test:
jobs:
- lint
- test
- build

View File

@@ -21,6 +21,8 @@ jobs:
run: yarn install --check-files --frozen-lockfile
- name: lint
run: yarn lint
- name: lint
run: yarn test
- name: build
run: yarn build
publish: