Skip to content

Merge pull request #236 from eckig/dependabot/maven/org.apache.maven.… #491

Merge pull request #236 from eckig/dependabot/maven/org.apache.maven.…

Merge pull request #236 from eckig/dependabot/maven/org.apache.maven.… #491

Workflow file for this run

---
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
java: [21, 22]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Run headless test
if: runner.os == 'Linux'
run: xvfb-run mvn -B test package --file pom.xml
- name: Run test
if: runner.os != 'Linux'
run: mvn -B test package --file pom.xml