2023-07-17 18:58:34 +02:00
|
|
|
name: Codacy Coverage Reporter
|
|
|
|
|
2023-08-09 14:33:28 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-07-17 18:58:34 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: codacy-coverage-reporter
|
|
|
|
steps:
|
2023-09-04 14:44:31 +00:00
|
|
|
- uses: actions/checkout@v4.0.0
|
2023-07-17 18:58:34 +02:00
|
|
|
|
|
|
|
- name: Set up JDK
|
2023-07-24 14:38:15 +00:00
|
|
|
uses: actions/setup-java@v3.12.0
|
2023-07-17 18:58:34 +02:00
|
|
|
with:
|
2023-09-11 21:47:39 +00:00
|
|
|
java-version: '11'
|
2023-07-17 18:58:34 +02:00
|
|
|
distribution: 'zulu'
|
|
|
|
|
|
|
|
- name: Build with Gradle
|
2023-09-04 14:44:27 +00:00
|
|
|
uses: gradle/gradle-build-action@v2.8.0
|
2023-07-17 18:58:34 +02:00
|
|
|
with:
|
|
|
|
arguments: build jacocoTestReport testCodeCoverageReport --scan
|
|
|
|
|
|
|
|
- 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
|