Java matrix build

This commit is contained in:
Oliver.Warz@pdv.de 2022-05-01 13:19:31 +02:00
parent bd61f1b2be
commit 3aa9fcd8b5

View File

@ -13,14 +13,17 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ 'temurin' ]
java: [ '8', '11', '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Build and verify with Maven
run: mvn -B package verify --file pom.xml