Merge pull request #5093 from line-o/backport/5028 #3114
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: Javadoc | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: ${{ matrix.jdk }} Javadocs | |
strategy: | |
matrix: | |
jdk: ['8','11', '16'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.jdk }} | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Maven Javadoc | |
run: mvn -V -B -q -T 2C javadoc:javadoc | |
continue-on-error: ${{ matrix.jdk != '8' }} | |