mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-07 06:02:33 -04:00
Aggregate and send coverage report to Codacy
This commit is contained in:
parent
51fb7d5eba
commit
aeb0822f9f
4 changed files with 69 additions and 142 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -30,9 +30,3 @@ jobs:
|
|||
with:
|
||||
name: cached-localnet
|
||||
path: .localnet
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: gradlew-report
|
||||
path: 'desktop/build/reports/tests/test/index.html'
|
||||
retention-days: 30
|
||||
|
|
28
.github/workflows/codacy-code-reporter.yml
vendored
Normal file
28
.github/workflows/codacy-code-reporter.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Codacy Coverage Reporter
|
||||
|
||||
on: ["push"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Publish coverage
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean build -x checkstyleMain -x checkstyleTest -x shadowJar
|
||||
|
||||
- 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 }}/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
|
Loading…
Add table
Add a link
Reference in a new issue