Skip to content

Commit fe70e6f

Browse files
olamyslachiewicz
authored andcommitted
use shared gh actions
1 parent afe7e19 commit fe70e6f

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

.github/workflows/maven.yml

+9-31
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,13 @@ name: GitHub CI
2020
on: [push, pull_request]
2121

2222
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 }}
33-
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v3
3723

38-
- name: Set up cache for ~./m2/repository
39-
uses: actions/cache@v3
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@v3
49-
with:
50-
java-version: ${{ matrix.java }}
51-
distribution: ${{ matrix.jdk }}
52-
53-
- name: Build with Maven
54-
run: mvn install javadoc:javadoc -e -B -V
24+
build:
25+
name: Build it
26+
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master
27+
with:
28+
jdk-fast-fail-build: '17'
29+
jdk-matrix: '["8", "11", "17"]'
30+
jdk-distribution-matrix: '["temurin"]'
31+
os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]'
32+
maven_args: 'verify javadoc:javadoc -e -B -V -fae '

0 commit comments

Comments
 (0)