Skip to content

Commit

Permalink
Use shared gh action setup
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz authored Dec 12, 2023
1 parent b2b207e commit fe3093c
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,14 @@ on: [push, pull_request]

jobs:
build:

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

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

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

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

- name: Build with Maven
run: mvn verify -e -V -P run-its
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3
with:
ff-goal: '-P run-its install' # site use project version for reporting
verify-goal: '-P run-its install' # should be the same as for first build

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

0 comments on commit fe3093c

Please sign in to comment.