mirror of
https://github.com/zhigang1992/react.git
synced 2026-05-13 02:01:59 +08:00
ci: add test job to CI
This commit is contained in:
@@ -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
|
||||
|
||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user