Add GitHub Actions job for JavaDoc verification #1485
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: build | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '**.yml' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '21', '22', '23' ] | |
architecture: [ 'x64' ] | |
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
architecture: ${{ matrix.architecture }} | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn package | |
verify-javadoc: | |
runs-on: ubuntu-latest | |
name: Validate JavaDocs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '23' | |
architecture: 'x64' | |
cache: 'maven' | |
- name: Validate JavaDocs | |
run: mvn -Pdoclint package -DskipTests=true | |