Dungeon Generator #638
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: Cross-platform CI java ea | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
build: | |
name: "Build (JDK-${{ matrix.java }}, ${{ matrix.os }})" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macOS-latest, windows-latest ] | |
java: [ 21 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
- name: 'Set up JDK' | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Cache maven deps | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build and test with Maven using xvfb | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: | | |
mvn test -B -Dgpg.skip=true -Dmaven.javadoc.skip=true -Dkotlin.compiler.incremental=false -Dpmd.skip=true |