add matrix to test for multiple java versions
@@ -5,13 +5,16 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: ["8", "11", "17"]
steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - name: Set up Java
+ uses: actions/setup-java@v3
with:
- java-version: "11"
- distribution: "adopt"
+ java-version: ${{ matrix.java }}
+ distribution: "temurin"
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
