Files
GSE2TaskTracker/.gitea/workflows/gradle-ci.yml
Jan 702c4c8525
Some checks failed
Gradle CI with Jacoco / build (push) Failing after 16m49s
.gitea/workflows/gradle-ci.yml aktualisiert
2025-12-07 12:28:40 +01:00

52 lines
1.2 KiB
YAML

name: Gradle CI with Jacoco
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 JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Cache Gradle Wrapper Distributions
uses: actions/cache@v3
with:
path: ~/.gradle/wrapper/dists
key: gradle-wrapper-${{ runner.os }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Build & Test with Jacoco
run: ./gradlew --no-daemon test jacocoTestReport
- 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