Skip to content

[releng] Add more combinations in the test matrix #209

[releng] Add more combinations in the test matrix

[releng] Add more combinations in the test matrix #209

Workflow file for this run

name: Build and verify with Maven
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
java: [ 21, 25 ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
target: [ 2024-12, 2026-03, canary ]
runs-on: ${{ matrix.os }}
name: OS ${{ matrix.os }} Target ${{ matrix.target }} compile
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: >-
${{ matrix.os == 'ubuntu-latest' && 'xvfb-run' || '' }} ./mvnw -V -B -fae -ntp -Dplatform=${{ matrix.target }} clean verify
- name: Upload Test Results for Java-${{ matrix.java }}
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: test-results-${{ matrix.os }}-target-${{ matrix.target }}-java-${{ matrix.java }}
if-no-files-found: error
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml