Aggregate and send coverage report to Codacy

This commit is contained in:
napoly 2023-04-09 18:13:47 +02:00 committed by woodser
parent 86e73fa702
commit 1ba210e93f
3 changed files with 54 additions and 133 deletions

View file

@ -36,3 +36,14 @@ jobs:
name: gradlew-report
path: 'desktop/build/reports/tests/test/index.html'
retention-days: 30
publish_coverage:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: /build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml