From be54d392cf756a3fff4283b430cdcd6aba9f81ee Mon Sep 17 00:00:00 2001 From: !verity Date: Fri, 13 Mar 2026 20:26:13 +0100 Subject: [PATCH] Enhance CI workflow: add concurrency control, test result publishing, and Javadoc generation --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9848f8..b3d63f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ main, master ] +# Alte Läufe abbrechen, wenn ein neuer Push kommt (spart Zeit) +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -27,7 +32,26 @@ jobs: - name: Build and test run: ./gradlew build --no-daemon --stacktrace - # Optional: run on Windows as well to catch OS-specific issues + - name: Publish Test Results + if: success() || failure() + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: build/test-results/**/*.xml + check_name: Test Results + continue-on-error: true + + javadoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: gradle + - run: chmod +x gradlew && ./gradlew javadoc --no-daemon + build-windows: runs-on: windows-latest steps: