mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-18 13:25:14 +01:00
GitHub Actions: Upload Coverage Report to Codacy
Co-authored-by: napoly <napolytan@protonmail.com>
This commit is contained in:
parent
feca0fb6be
commit
b9d20d2da1
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -29,3 +29,25 @@ jobs:
|
||||
uses: gradle/gradle-build-action@v2.5.1
|
||||
with:
|
||||
arguments: build jacocoTestReport testCodeCoverageReport --scan
|
||||
|
||||
- name: Upload coverage report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coverage-report
|
||||
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
|
||||
|
||||
publish_coverage:
|
||||
name: Publish coverage
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Download coverage report
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: coverage-report
|
||||
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport
|
||||
- name: Run codacy-coverage-reporter
|
||||
uses: codacy/codacy-coverage-reporter-action@v1.3.0
|
||||
with:
|
||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
coverage-reports: ${{ github.workspace }}/code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
|
||||
|
Loading…
Reference in New Issue
Block a user