Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 9 additions & 31 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,15 @@

name: GitHub CI

on: [ push, pull_request ]
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@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}

- name: Build with Maven
run: mvn --batch-mode --errors --show-version verify
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