diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5ad6010..fab1345 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,32 +16,25 @@ # under the License. name: GitHub CI - -on: [push, pull_request] +on: + push: + pull_request: jobs: - build: - - strategy: - matrix: - os: [ubuntu-latest,windows-latest, macOS-latest] - java: [8, 11, 17] - jdk: [temurin] - fail-fast: false - - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - - - name: Set up JDK - uses: actions/setup-java@v3 - with: - distribution: ${{ matrix.jdk }} - java-version: ${{ matrix.java }} - cache: 'maven' - - - name: Build with Maven - run: mvn install javadoc:javadoc -e -B -V + build: + name: Build it + uses: codehaus-plexus/.github/.github/workflows/maven.yml@master + with: + jdk-fast-fail-build: '11' + jdk-matrix: '["11", "17", "18", "19-ea"]' + jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica","corretto"]' + os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]' + matrix-exclude: '[ + { "jdk": "18", "distribution": "microsoft" }, + { "jdk": "19-ea", "distribution": "corretto" }, + { "jdk": "19-ea", "distribution": "liberica" }, + { "jdk": "19-ea", "distribution": "microsoft" }, + { "jdk": "19-ea", "distribution": "temurin" } + ]' + maven_args: 'install javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx'