Skip to content

Commit

Permalink
Merge pull request #1432 from yue9944882/github-action-maven-cache
Browse files Browse the repository at this point in the history
Caching local maven repositories for github action jobs to reduce flakiness
  • Loading branch information
k8s-ci-robot committed Dec 11, 2020
2 parents 0ba02a3 + afa92a1 commit 5333aca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Expand Up @@ -34,6 +34,13 @@ jobs:
uses: actions/setup-java@v1
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-
- name: Build with Maven
run: mvn -q test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
build-graalvm:
Expand Down

0 comments on commit 5333aca

Please sign in to comment.