.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:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Java 17
|
- name: Set up Java 17
|
||||||
@@ -27,18 +27,15 @@ jobs:
|
|||||||
path: ~/.gradle/wrapper/dists
|
path: ~/.gradle/wrapper/dists
|
||||||
key: gradle-wrapper-${{ runner.os }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
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
|
- name: Build & Test with Jacoco
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build/logs
|
./gradlew --no-daemon test jacocoTestReport --stacktrace --warning-mode all || true
|
||||||
./gradlew --no-daemon test jacocoTestReport > build/logs/build.log 2>&1 || exit 1
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
# -----------------------
|
# -----------------------
|
||||||
# Artefakte hochladen
|
# Jacoco Artefakte hochladen
|
||||||
# -----------------------
|
# -----------------------
|
||||||
- name: Upload Jacoco HTML Report
|
- name: Upload Jacoco HTML Report
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -58,9 +55,12 @@ jobs:
|
|||||||
name: jacoco-csv-report
|
name: jacoco-csv-report
|
||||||
path: build/reports/jacoco/jacoco.csv
|
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
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-error-log
|
name: problems-report
|
||||||
path: build/logs/build.log
|
path: build/reports/problems/problems-report.html
|
||||||
|
|||||||
Reference in New Issue
Block a user