ci: output xml coverage report

This commit is contained in:
Nicolas Giard 2022-03-29 20:38:18 -04:00 committed by GitHub
parent 32d15efee6
commit 11fe9f56b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,19 +126,20 @@ jobs:
- name: Rename Coverage Results
if: ${{ always() }}
run: |
coverage xml
mv latest-coverage.json coverage.json
- name: Report Codacy Coverage
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.json
coverage-reports: coverage.xml
# - name: Upload Coverage Results to Codecov
# uses: codecov/codecov-action@v2.1.0
# if: ${{ always() }}
# with:
# files: coverage.json
- name: Upload Coverage Results to Codecov
uses: codecov/codecov-action@v2.1.0
if: ${{ always() }}
with:
files: coverage.xml
- name: Upload Coverage Results as Build Artifact
uses: actions/upload-artifact@v3.0.0