Skip to content

Commit e3c7e88

Browse files
authored
Use github shared action (#159)
Signed-off-by: Olivier Lamy <olamy@apache.org>
1 parent fba7d56 commit e3c7e88

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

.github/workflows/maven.yml

+13-31
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,20 @@
1717

1818
name: GitHub CI
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches-ignore:
23+
- dependabot/**
24+
pull_request:
2125

2226
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 }}
3327

34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v2
37-
38-
- name: Set up cache for ~./m2/repository
39-
uses: actions/cache@v2.1.6
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/maven.yml@v0.0.1
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'
5236

53-
- name: Build with Maven
54-
run: mvn verify javadoc:javadoc -e -B -V -fae -Pno-tests-if-not-on-osx

0 commit comments

Comments
 (0)