Java matrix build
This commit is contained in:
parent
bd61f1b2be
commit
3aa9fcd8b5
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user