Skip to content

Build with Java 17 and enable linter #569

Build with Java 17 and enable linter

Build with Java 17 and enable linter #569

Workflow file for this run

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