Merge pull request #457 from palatej/develop #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |