mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
调整 coverage 收集
This commit is contained in:
parent
cc7b90a5d6
commit
dd8ab4fdae
29
.github/workflows/gh-pages.yml
vendored
29
.github/workflows/gh-pages.yml
vendored
@ -38,12 +38,29 @@ jobs:
|
||||
FOLDER: gh-pages # The folder the action should deploy.
|
||||
CLEAN: true # Automatically remove deleted files from the deploy branch
|
||||
SINGLE_COMMIT: true
|
||||
- name: Generate coverage report
|
||||
- name: Run All Tests AND Generate coverage report
|
||||
run: |
|
||||
npm run coverage --workspace amis
|
||||
- uses: codecov/codecov-action@v2
|
||||
npm run coverage --workspaces
|
||||
with:
|
||||
verbose: true # optional (default = false)
|
||||
fail_ci_if_error: false
|
||||
- name: Upload amis-formula coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./packages/amis-formula/coverage/clover.xml
|
||||
flags: amis-formula
|
||||
- name: Upload amis-core coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./packages/amis-core/coverage/clover.xml
|
||||
flags: amis-core
|
||||
- name: Upload amis-ui coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./packages/amis-ui/coverage/clover.xml
|
||||
flags: amis-ui
|
||||
- name: Upload amis coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./packages/amis/coverage/clover.xml
|
||||
name: codecov-umbrella # optional
|
||||
fail_ci_if_error: false
|
||||
verbose: true # optional (default = false)
|
||||
flags: amis
|
||||
|
Loading…
Reference in New Issue
Block a user