Skip to content
Permalink
Browse files
Use GitHub Actions setup-java Maven cache property
  • Loading branch information
aherbert committed Jun 29, 2022
1 parent f7981ca commit 6d9ac3148bfda76b9c2776ac3f8faf67e0d950b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
@@ -30,17 +30,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven including the docs-archive module using a profile
run: mvn -V -Pdocs test jacoco:report-aggregate --no-transfer-progress

@@ -30,17 +30,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
# Use the default goal
if: matrix.java == 8

0 comments on commit 6d9ac31

Please sign in to comment.