All checks were successful
Gradle CI with Jacoco and Problems Report / build (push) Successful in 22m1s
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
name: Gradle CI with Jacoco and Problems Report
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Java 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
cache: gradle
|
|
|
|
- name: Cache Gradle Wrapper
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.gradle/wrapper/dists
|
|
key: gradle-wrapper-${{ runner.os }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
# -----------------------
|
|
# Build & Test mit Jacoco
|
|
# -----------------------
|
|
- name: Build & Test with Jacoco
|
|
run: |
|
|
./gradlew --no-daemon test jacocoTestReport --stacktrace --warning-mode all || true
|
|
|
|
# -----------------------
|
|
# Jacoco Artefakte hochladen
|
|
# -----------------------
|
|
- name: Upload Jacoco HTML Report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: jacoco-html-report
|
|
path: build/jacocoHtml
|
|
|
|
- name: Upload Jacoco XML Report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: jacoco-xml-report
|
|
path: build/customJacocoReportDir/*.xml
|
|
|
|
- name: Upload Jacoco CSV Report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: jacoco-csv-report
|
|
path: build/reports/jacoco/jacoco.csv
|
|
|
|
# -----------------------
|
|
# Gradle Problems Report hochladen
|
|
# -----------------------
|
|
- name: Upload Gradle Problems Report
|
|
if: always()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: problems-report
|
|
path: build/reports/problems/problems-report.html
|