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 authored Dec 2, 2023
1 parent 1c62e47 commit 442430c
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,15 @@

name: GitHub CI

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
build:
name: Build it
uses: codehaus-plexus/.github/.github/workflows/maven.yml@master

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

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

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: mvn --batch-mode --errors --show-version verify site
deploy:
name: Deploy
needs: build
uses: codehaus-plexus/.github/.github/workflows/maven-deploy.yml@master
secrets: inherit

0 comments on commit 442430c

Please sign in to comment.