mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-09 09:27:34 +01:00
Use java version matrix in github actions
This commit is contained in:
parent
c32d090812
commit
d166c951fa
16
.github/workflows/maven.yml
vendored
16
.github/workflows/maven.yml
vendored
@ -4,14 +4,16 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
jdkversion: [8, 11, 17]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 1.8
|
- uses: actions/setup-java@v3
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.jdkversion }}
|
||||||
|
cache: 'maven'
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B clean package --file pom.xml
|
run: mvn -V -B clean package --file pom.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user