merge all coverage reports into a single artifact (#7262)

This commit is contained in:
Paul Kehrer 2022-05-25 09:18:04 +08:00 committed by GitHub
parent cc0da3bc60
commit 4aeff01838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -20,11 +20,8 @@ runs:
shell: bash
- uses: actions/upload-artifact@v3.0.0
with:
name: coverage-${{ steps.coverage-uuid.outputs.COVERAGE_UUID }}
path: ".coverage.*"
if-no-files-found: ignore
- uses: actions/upload-artifact@v3.0.0
with:
name: rust-coverage-${{ steps.coverage-uuid.outputs.COVERAGE_UUID }}
path: "*.lcov"
if-no-files-found: ignore
name: coverage-data
path: |
.coverage.*
*.lcov
if-no-files-found: ignore

View file

@ -589,7 +589,8 @@ jobs:
- run: pip install coverage
- name: Download coverage data
uses: actions/download-artifact@v3.0.0
- run: mv **/.coverage* . && mv **/*.lcov .
with:
name: coverage-data
- name: Combine coverage and fail if it's <100%.
id: combinecoverage
run: |