aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Volkhart <mariusvolkhart@apache.org>2021-02-06 15:23:11 +0000
committerMarius Volkhart <mariusvolkhart@apache.org>2021-02-06 15:23:11 +0000
commit0e6f8573f3e7a69c20b4d45133eaec5bd3119222 (patch)
treeb81f3ef1f37574fb25c5a3983fa48f01525ab5ff
parent4fcd98573ff016ce82d48ecd42d0602301ca4746 (diff)
downloadpoi-0e6f8573f3e7a69c20b4d45133eaec5bd3119222.tar.gz
poi-0e6f8573f3e7a69c20b4d45133eaec5bd3119222.zip
Cache Maven repo during GitHub Actions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886257 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--.github/workflows/test-maven.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/test-maven.yml b/.github/workflows/test-maven.yml
index 5b6a47a643..9f11477a95 100644
--- a/.github/workflows/test-maven.yml
+++ b/.github/workflows/test-maven.yml
@@ -25,10 +25,10 @@ jobs:
- name: Cache
uses: actions/cache@v2.1.3
with:
- # A list of files, directories, and wildcard patterns to cache and restore
- path: lib
- # An explicit key for restoring and saving the cache
- key: poi-third-party-libs
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Build with Maven
run: (cd sonar && mvn -B validate package --file pom.xml)