mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-12-12 12:53:32 +01:00
29 lines
750 B
YAML
29 lines
750 B
YAML
|
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
|