Skip to content

Add GitHub Actions job for JavaDoc verification #1482

Add GitHub Actions job for JavaDoc verification

Add GitHub Actions job for JavaDoc verification #1482

Workflow file for this run

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 package -DskipTests=true javadoc:javadoc