|
17 | 17 |
|
18 | 18 | name: GitHub CI |
19 | 19 |
|
20 | | -on: [push, pull_request] |
| 20 | +on: |
| 21 | + push: |
| 22 | + branches-ignore: |
| 23 | + - dependabot/** |
| 24 | + pull_request: |
21 | 25 |
|
22 | 26 | jobs: |
23 | | - build: |
24 | | - |
25 | | - strategy: |
26 | | - matrix: |
27 | | - os: [ubuntu-latest,windows-latest, macOS-latest] |
28 | | - java: [8, 11, 14, 15, 16, 17-ea] |
29 | | - jdk: [adopt-hotspot, zulu, adopt-openj9] |
30 | | - fail-fast: false |
31 | | - |
32 | | - runs-on: ${{ matrix.os }} |
33 | 27 |
|
34 | | - steps: |
35 | | - - name: Checkout |
36 | | - uses: actions/checkout@v2 |
37 | | - |
38 | | - - name: Set up cache for ~./m2/repository |
39 | | - |
40 | | - with: |
41 | | - path: ~/.m2/repository |
42 | | - key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} |
43 | | - restore-keys: | |
44 | | - maven-${{ matrix.os }}-java${{ matrix.java }}- |
45 | | - maven-${{ matrix.os }}- |
46 | | -
|
47 | | - - name: Set up JDK |
48 | | - uses: actions/setup-java@v2 |
49 | | - with: |
50 | | - distribution: ${{ matrix.jdk }} |
51 | | - java-version: ${{ matrix.java }} |
| 28 | + build: |
| 29 | + name: Build it |
| 30 | + uses: codehaus-plexus/.github/.github/workflows/[email protected] |
| 31 | + with: |
| 32 | + jdk-matrix: '["8", "11", "16", "17"]' |
| 33 | + jdk-distribution-matrix: '["adopt-hotspot", "zulu", "temurin"]' |
| 34 | + os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]' |
| 35 | + maven_args: 'verify javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx' |
52 | 36 |
|
53 | | - - name: Build with Maven |
54 | | - run: mvn verify javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx |
0 commit comments