Skip to content

Commit 64c9137

Browse files
authored
use share GHA (#38)
1 parent 34b8875 commit 64c9137

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

.github/workflows/maven.yml

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,25 @@
1616
# under the License.
1717

1818
name: GitHub CI
19-
20-
on: [push, pull_request]
19+
on:
20+
push:
21+
pull_request:
2122

2223
jobs:
23-
build:
24-
25-
strategy:
26-
matrix:
27-
os: [ubuntu-latest,windows-latest, macOS-latest]
28-
java: [8, 11, 17]
29-
jdk: [temurin]
30-
fail-fast: false
31-
32-
runs-on: ${{ matrix.os }}
3324

34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v3
37-
38-
39-
- name: Set up JDK
40-
uses: actions/setup-java@v3
41-
with:
42-
distribution: ${{ matrix.jdk }}
43-
java-version: ${{ matrix.java }}
44-
cache: 'maven'
45-
46-
- name: Build with Maven
47-
run: mvn install javadoc:javadoc -e -B -V
25+
build:
26+
name: Build it
27+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
28+
with:
29+
jdk-fast-fail-build: '11'
30+
jdk-matrix: '["11", "17", "18", "19-ea"]'
31+
jdk-distribution-matrix: '["zulu", "temurin", "microsoft", "liberica","corretto"]'
32+
os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]'
33+
matrix-exclude: '[
34+
{ "jdk": "18", "distribution": "microsoft" },
35+
{ "jdk": "19-ea", "distribution": "corretto" },
36+
{ "jdk": "19-ea", "distribution": "liberica" },
37+
{ "jdk": "19-ea", "distribution": "microsoft" },
38+
{ "jdk": "19-ea", "distribution": "temurin" }
39+
]'
40+
maven_args: 'install javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx'

0 commit comments

Comments
 (0)