调整 coverage 收集

This commit is contained in:
liaoxuezhi 2022-06-02 17:05:20 +08:00
parent cc7b90a5d6
commit dd8ab4fdae

View File

@ -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