Skip to content

Update actions/cache action to v3.3.3 #178

Update actions/cache action to v3.3.3

Update actions/cache action to v3.3.3 #178

Workflow file for this run

name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 8, 11, 17 ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2
- name: Show Maven version
run: mvn --version
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify