Skip to content

Commit

Permalink
Merge pull request #141 from hazendaz/main
Browse files Browse the repository at this point in the history
[GHA] Rework github actions
  • Loading branch information
hazendaz authored Apr 6, 2024
2 parents 05a38b6 + 1a2ca64 commit 543dd77
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,24 @@

name: mvn verify

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request, workflow_dispatch]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [17]
java: [17, 21]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Cache local maven repository
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ matrix.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ matrix.os }}-m2
distribution: temurin
cache: 'maven'
- name: Download Maven Wrapper
run: mvn wrapper:wrapper "-Dmaven=3.9.6"
- name: Build with Maven
Expand Down

0 comments on commit 543dd77

Please sign in to comment.