Skip to content

Commit

Permalink
use shared gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
olamy authored and slachiewicz committed Jun 9, 2022
1 parent fd1d4d2 commit e654529
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,13 @@ name: GitHub CI
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 cache for ~./m2/repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ matrix.os }}-java${{ matrix.java }}-
maven-${{ matrix.os }}-
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.jdk }}

- 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: '17'
jdk-matrix: '["8", "11", "17"]'
jdk-distribution-matrix: '["temurin"]'
os-matrix: '["ubuntu-latest","windows-latest", "macOS-latest"]'
maven_args: 'verify javadoc:javadoc -e -B -V -fae '

0 comments on commit e654529

Please sign in to comment.