Cache the Maven repository for the Java 11 build

This commit is contained in:
Chris Vest 2021-05-21 19:15:31 +02:00
parent a9b8189aa1
commit a1f943c8ae

View File

@ -64,5 +64,11 @@ jobs:
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Maven build
run: mvn verify -B -C -T1C -fae