Skip to content

Commit

Permalink
Reuse plexus-pom action for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Dec 2, 2023
1 parent 265f2a3 commit f7d9d35
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,11 @@ on: [push, pull_request]

jobs:
build:

strategy:
matrix:
os: [ubuntu-latest,windows-latest, macOS-latest]
java: [8, 11, 17]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4

- 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@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}

- name: Build with Maven
run: mvn install javadoc:javadoc -e -B -V
name: Build it
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master

deploy:
name: Deploy
needs: build
uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
secrets: inherit

0 comments on commit f7d9d35

Please sign in to comment.