Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
👷 CI: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jul 9, 2020
1 parent 581cf1f commit c0f1b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:

- name: lint
run: npm run lint && npm run tsc
- name: test
run: npm run test
- name: test
run: npm run test:coverage
- name: Generate coverage
run: bash <(curl -s https://codecov.io/bash)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"site_build": "dumi build",
"doc": "cd ./example && umi dev",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"tsc": "tsc -p tsconfig-check.json"
},
"husky": {
Expand Down

0 comments on commit c0f1b37

Please sign in to comment.