Build with Java 17 and enable linter #569
Workflow file for this run
This file contains 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: [ '11', '17' ] | |
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 |