Add maven.yml GitHub Actions workflow

This commit is contained in:
Sean Gilligan 2022-12-09 16:59:56 -08:00
parent e2af1a2615
commit 2a0d824ced
1 changed files with 25 additions and 0 deletions

25
.github/workflows/maven.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Maven JVM Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-12, windows-latest]
java: ['11', '17']
distribution: ['temurin']
fail-fast: false
name: ${{ matrix.os }} JDK ${{ matrix.distribution }} ${{ matrix.java }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up JDK
id: setupjdk
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn verify