Add caching for maven build actions (#2300)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-02-24 14:50:24 +02:00
committed by GitHub
parent cca0a3e444
commit 009e4a73ef
2 changed files with 16 additions and 0 deletions

View File

@@ -39,6 +39,14 @@ jobs:
java-version: 17
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Check file license headers
run: mvn license:check --batch-mode

View File

@@ -39,6 +39,14 @@ jobs:
java-version: 17
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Check file license headers
run: mvn license:check --batch-mode