ci: build for java 11 and 17
@@ -5,12 +5,15 @@ on: [create, pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ '11', '17' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
- java-version: '11'
+ java-version: ${{ matrix.java }}
distribution: 'adopt'
cache: maven
- name: Build with Maven
