Skip to content

Merge pull request #39 from penguineer/main-cache #81

Merge pull request #39 from penguineer/main-cache

Merge pull request #39 from penguineer/main-cache #81

Workflow file for this run

name: Maven Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${ github.ref }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-${ github.ref }}
${{ runner.os }}-m2-main
- name: Run tests
run: mvn --batch-mode --update-snapshots -Pproduction clean verify