Add caching for maven build actions (#2300)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
8
.github/workflows/verify.yml
vendored
8
.github/workflows/verify.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user