mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-09 01:17: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:
|
||||
build_and_test:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
jdkversion: [8, 11, 17]
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 1.8
|
||||
distribution: 'temurin'
|
||||
java-version: ${{ matrix.jdkversion }}
|
||||
cache: '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