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-25 14:51:21 +00:00
|
|
|
- uses: actions/checkout@v4.1.0
|
2023-07-17 18:58:34 +02:00
|
|
|
|
|
|
|
- name: Set up JDK
|
2023-09-25 14:51:17 +00:00
|
|
|
uses: actions/setup-java@v3.13.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-10-02 14:17:56 +00:00
|
|
|
uses: gradle/gradle-build-action@v2.9.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
|