diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 346cadd2..7cef8fca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,29 @@ on: paths-ignore: '**/*.md' jobs: + test-javadoc: + name: Test JavaDoc Builds + runs-on: ubuntu-22.04 # newest available distribution, aka jellyfish + if: "!contains(github.event.head_commit.message, 'maven-release-plugin')" + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # full git history for license check + - name: Setup java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' # zulu as it supports a wide version range + java-version: '11' # earliest LTS and last that can compile the 1.6 release profile. + - name: Cache local Maven repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-jdk-11-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-jdk-11-maven- + - name: Build JavaDoc + run: ./mvnw clean javadoc:aggregate -Prelease + test: name: test (JDK ${{ matrix.java_version }}) runs-on: ubuntu-22.04 # newest available distribution, aka jellyfish @@ -23,8 +46,8 @@ jobs: fail-fast: false # don't fail fast as sometimes failures are operating system specific matrix: # use latest available versions and be consistent on all workflows! include: - - java_version: 11 # Last that can compile core to 1.6 - maven_args: -Prelease -Dgpg.skip + - java_version: 11 # Last that can compile zipkin-reporter to 1.6 for Brave + maven_args: -Prelease -Dgpg.skip -Dmaven.javadoc.skip=true - java_version: 21 # Most recent LTS steps: - name: Checkout Repository