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 3e3529b commit 0076758
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,11 @@ on: [push, pull_request]

jobs:
build:

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

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

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

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.jdk }}
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: mvn install javadoc:javadoc -e -B -V

- name: Build with Maven and target Java level - ${{ matrix.java }}
run: mvn clean install javadoc:javadoc -e -DjavaVersion=${{ matrix.java }}
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 0076758

Please sign in to comment.