Skip to content

Commit

Permalink
Updating github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Jan 2, 2025
1 parent 873449b commit 71678d3
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@ name: Build and Test
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
jdk: [ 21 ]
experimental: [false]
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: ${{ matrix.jdk }}
cache: maven
- name: Build
run: mvn --batch-mode test

0 comments on commit 71678d3

Please sign in to comment.