2019-09-19 14:56:36 +02:00
|
|
|
name: Java CI
|
|
|
|
|
2022-07-16 18:35:03 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-09-19 14:56:36 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
2022-04-10 20:25:31 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-04-28 21:04:48 +02:00
|
|
|
jdkversion: [11, 17, 21]
|
2019-09-19 14:56:36 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-10 20:25:31 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
2019-09-19 14:56:36 +02:00
|
|
|
with:
|
2022-04-10 20:25:31 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: ${{ matrix.jdkversion }}
|
|
|
|
cache: 'maven'
|
2019-09-19 14:56:36 +02:00
|
|
|
- name: Build with Maven
|
2022-04-10 20:25:31 +02:00
|
|
|
run: mvn -V -B clean package --file pom.xml
|