From 415043fec80e4bbf77ec9f462f36b57f8b874503 Mon Sep 17 00:00:00 2001 From: Priyanshu Date: Wed, 24 Jun 2026 22:51:11 +0530 Subject: [PATCH] ci: add scheduled JDK compatibility matrix workflow for Java 22, 23, 24, 25-ea --- .../workflows/jdk-compatibility-matrix.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/jdk-compatibility-matrix.yml diff --git a/.github/workflows/jdk-compatibility-matrix.yml b/.github/workflows/jdk-compatibility-matrix.yml new file mode 100644 index 000000000000..57465508b010 --- /dev/null +++ b/.github/workflows/jdk-compatibility-matrix.yml @@ -0,0 +1,37 @@ +name: JDK Compatibility Matrix + +on: + schedule: + # Run every Sunday at 00:00 UTC + - cron: '0 0 * * 0' + workflow_dispatch: + # Allows manual triggering + +permissions: + contents: read + +jobs: + compat-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java-version: [ 22, 23, 24 ] + distribution: [ 'temurin' ] + include: + # Also test the upcoming JDK 25 Early Access + - java-version: '25-ea' + distribution: 'oracle' + + name: Java ${{ matrix.java-version }} (${{ matrix.distribution }}) + steps: + - uses: actions/checkout@v7 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v5 + with: + java-version: ${{ matrix.java-version }} + distribution: ${{ matrix.distribution }} + + - name: Build and Test with Maven + run: mvn --batch-mode --update-snapshots verify