This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
The following commit(s) were added to refs/heads/master by this push:
new 6d9ac314 Use GitHub Actions setup-java Maven cache property
6d9ac314 is described below
commit 6d9ac3148bfda76b9c2776ac3f8faf67e0d950b4
Author: Alex Herbert <[email protected]>
AuthorDate: Wed Jun 29 13:58:29 2022 +0100
Use GitHub Actions setup-java Maven cache property
---
.github/workflows/coverage.yml | 9 ++-------
.github/workflows/maven.yml | 9 ++-------
2 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index e148b91c..825a3877 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -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
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index f8153c0b..53d4f8d8 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -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