From e8faf9e88a63319974ceab896a97dfc9ce905e0a Mon Sep 17 00:00:00 2001 From: Karsten Schnitter Date: Tue, 28 Oct 2025 12:14:09 +0100 Subject: [PATCH 1/4] Add Workflow for Maven Build Each PR should be built with `mvn clean verify` to execute the integration tests. This helps PR validation. --- .github/workflows/maven-verify.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/maven-verify.yml diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml new file mode 100644 index 00000000..a59080a7 --- /dev/null +++ b/.github/workflows/maven-verify.yml @@ -0,0 +1,17 @@ +name: Maven Verify + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + - name: Build with Maven + run: mvn clean verify From 281d609d7e4b708463cceba7e6fbaa6f7fc54adf Mon Sep 17 00:00:00 2001 From: Karsten Schnitter Date: Tue, 28 Oct 2025 12:27:47 +0100 Subject: [PATCH 2/4] Only build release-4 PRs The release-4 branch is based on Java 17. Only PRs against this PR are compatible with the workflow setup. Signed-off-by: Karsten Schnitter --- .github/workflows/maven-verify.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index a59080a7..d1e0827a 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -2,6 +2,8 @@ name: Maven Verify on: pull_request: + branches: + - release-4 jobs: build: From 2c5f6a8685feb86101a12ef87bc58488f7de6ae9 Mon Sep 17 00:00:00 2001 From: Karsten Schnitter Date: Tue, 28 Oct 2025 12:31:40 +0100 Subject: [PATCH 3/4] Add Workflow for main branch The main branch requires a different build: - use JDK 11 - separate clean & verify Maven command Signed-off-by: Karsten Schnitter --- .github/workflows/maven-verify.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index d1e0827a..deb6b9b3 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -3,10 +3,27 @@ name: Maven Verify on: pull_request: branches: + - main - release-4 jobs: - build: + build-main: + if: github.base_ref == 'main' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '11' + - name: Clean with Maven + run: mvn clean + - name: Build with Maven + run: mvn verify + + build-releas-4: + if: github.base_ref == 'release-4' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 6a2f754333c4aed883ad52b965e265c57573c9f6 Mon Sep 17 00:00:00 2001 From: Karsten Schnitter Date: Tue, 28 Oct 2025 12:36:52 +0100 Subject: [PATCH 4/4] Temporarily Disable main workflow Currently the checks should be tested with the release-4 branch. Fixes for the main branch will be done separately. Signed-off-by: Karsten Schnitter --- .github/workflows/maven-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index deb6b9b3..6afe34e6 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -3,7 +3,7 @@ name: Maven Verify on: pull_request: branches: - - main + # - main - release-4 jobs: @@ -22,7 +22,7 @@ jobs: - name: Build with Maven run: mvn verify - build-releas-4: + build-release-4: if: github.base_ref == 'release-4' runs-on: ubuntu-latest steps: