.gitea/workflows/gradle-ci.yml aktualisiert
All checks were successful
Gradle CI with Jacoco and Problems Report / build (push) Successful in 22m1s
All checks were successful
Gradle CI with Jacoco and Problems Report / build (push) Successful in 22m1s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Gradle CI with Jacoco and Error Logs
|
||||
name: Gradle CI with Jacoco and Problems Report
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Java 17
|
||||
@@ -27,18 +27,15 @@ jobs:
|
||||
path: ~/.gradle/wrapper/dists
|
||||
key: gradle-wrapper-${{ runner.os }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
||||
|
||||
|
||||
# -----------------------
|
||||
# Build & Test mit Error-Log
|
||||
# Build & Test mit Jacoco
|
||||
# -----------------------
|
||||
- name: Build & Test with Jacoco
|
||||
run: |
|
||||
mkdir -p build/logs
|
||||
./gradlew --no-daemon test jacocoTestReport > build/logs/build.log 2>&1 || exit 1
|
||||
continue-on-error: true
|
||||
./gradlew --no-daemon test jacocoTestReport --stacktrace --warning-mode all || true
|
||||
|
||||
# -----------------------
|
||||
# Artefakte hochladen
|
||||
# Jacoco Artefakte hochladen
|
||||
# -----------------------
|
||||
- name: Upload Jacoco HTML Report
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -58,9 +55,12 @@ jobs:
|
||||
name: jacoco-csv-report
|
||||
path: build/reports/jacoco/jacoco.csv
|
||||
|
||||
- name: Upload Build Error Log
|
||||
if: failure() || always()
|
||||
# -----------------------
|
||||
# Gradle Problems Report hochladen
|
||||
# -----------------------
|
||||
- name: Upload Gradle Problems Report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-error-log
|
||||
path: build/logs/build.log
|
||||
name: problems-report
|
||||
path: build/reports/problems/problems-report.html
|
||||
|
||||
Reference in New Issue
Block a user