2020-07-11 12:05:50 +01:00
|
|
|
name: maven-build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: '*'
|
|
|
|
pull_request:
|
|
|
|
branches: '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-30 08:51:44 +01:00
|
|
|
java: [ 11, 16 ]
|
2020-07-11 12:05:50 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: setup-jdk-${{ matrix.java }}
|
2021-06-30 09:29:15 +01:00
|
|
|
uses: actions/setup-java@v2.1.0
|
2020-07-11 12:05:50 +01:00
|
|
|
with:
|
2021-06-30 08:51:44 +01:00
|
|
|
distribution: 'adopt'
|
2020-07-11 12:05:50 +01:00
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
- name: build-jar
|
|
|
|
run: mvn -B install
|