Skip to content

Merge pull request #3348 from hazendaz/pom-cleanup #2544

Merge pull request #3348 from hazendaz/pom-cleanup

Merge pull request #3348 from hazendaz/pom-cleanup #2544

Workflow file for this run

name: Java CI
on: [workflow_dispatch, push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
cache: [maven]
distribution: [temurin]
java: [17, 21, 23, 24-ea, 25-ea]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }}
uses: actions/setup-java@v4
with:
cache: ${{ matrix.cache }}
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Setup testContainers profile for ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: echo 'TEST_CONTAINERS_PROFILE=-PtestContainers' >> $GITHUB_ENV
- name: Test with Maven
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" $TEST_CONTAINERS_PROFILE