CI: update actions/checkout and actions/setup-java to the latest versions

This commit is contained in:
Chris Eager 2024-02-29 10:19:49 -06:00 committed by Chris Eager
parent a529bd0143
commit 3f0fba316d

View File

@ -13,17 +13,12 @@ jobs:
name: JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: 'temurin'
cache: maven
- name: Test with Maven
run: mvn verify -B --file pom.xml