Skip to content

Update actions/cache action to v4 #16

Update actions/cache action to v4

Update actions/cache action to v4 #16

Workflow file for this run

---
name: mvn
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Tests
strategy:
matrix:
os: [ubuntu-20.04, macos-12]
java: [11, 17]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: mvn clean install --errors --batch-mode