name: Cross-Version

on: [push, pull_request]

jobs:

  test_java:
    name: Java ${{ matrix.java }}
    strategy:
      fail-fast: false
      matrix:
        java: [16, 17-ea, 18-ea]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: ${{ matrix.java }}
          cache: 'maven'
      - name: Test
        run: ./mvnw -V --no-transfer-progress -e verify javadoc:javadoc

name: Cross-Version

on: [push, pull_request]

jobs:

  test_java:
    name: Java ${{ matrix.java }}
    strategy:
      fail-fast: false
      matrix:
        java: [17, 18-ea]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Java
        uses: actions/setup-java@v2
        with:
          distribution: 'zulu'
          java-version: ${{ matrix.java }}
          cache: 'maven'
      - name: Test
        run: ./mvnw -V --no-transfer-progress -e verify javadoc:javadoc

Use Java 17 GA, remove EOL Java 16
Use Java 17 GA, remove EOL Java 16