ci-build: cache local maven repo (#2437)

This commit is contained in:
Ilkka Seppälä
2023-01-06 12:34:08 +02:00
committed by GitHub
parent 6c1f268248
commit 919d7d0339
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -54,6 +54,14 @@ jobs:
distribution: 'temurin'
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Cache Sonar packages which as used to run analysis and collect metrics
- name: Cache SonarCloud packages
uses: actions/cache@v3
+8
View File
@@ -50,6 +50,14 @@ jobs:
distribution: 'temurin'
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Cache Sonar packages which as used to run analysis and collect metrics
- name: Cache SonarCloud packages
uses: actions/cache@v3