2023-05-10 18:47:12 -04:00
|
|
|
name: Codacy Coverage Reporter
|
|
|
|
|
|
|
|
on: ["push"]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-04-12 13:31:19 -04:00
|
|
|
if: github.repository == 'haveno-dex/haveno'
|
2023-05-10 18:47:12 -04:00
|
|
|
name: Publish coverage
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-09 10:36:37 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-10 18:47:12 -04:00
|
|
|
|
2024-03-09 10:36:37 -05:00
|
|
|
- name: Set up JDK 21
|
|
|
|
uses: actions/setup-java@v4
|
2023-05-10 18:47:12 -04:00
|
|
|
with:
|
2024-03-09 10:36:37 -05:00
|
|
|
java-version: '21'
|
2023-05-10 18:47:12 -04:00
|
|
|
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
|