Skip to content

Merge pull request #457 from palatej/develop #177

Merge pull request #457 from palatej/develop

Merge pull request #457 from palatej/develop #177

Workflow file for this run

name: Java-EA with Maven
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build-and-test-job:
strategy:
fail-fast: false
matrix:
java: [ 21 ]
os: [ ubuntu-latest, macos-latest ]
name: JDK${{ matrix.java }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build and (headless) test with Maven (Linux)
if: ${{ runner.os == 'Linux' }}
run: xvfb-run mvn -U -B -ntp verify
- name: Build and (headless) test with Maven (Windows and macOS)
if: ${{ runner.os != 'Linux' }}
run: mvn -U -B -ntp verify