Require JDK 17, test on JDK 21 (drop some tests having issues with JDK 17+) #593
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
maven: [ '3.8.8', '3.9.9' ] | |
java: [ '17', '21' ] | |
os: [ 'ubuntu-latest', 'windows-latest' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: ${{ matrix.maven }} | |
- name: print Maven and Java versions | |
run: mvn --version | |
- name: Build | |
run: mvn -ntp -B clean verify | |
- name: Generate site | |
run: mvn -ntp -B clean site -P publicsite |