Skip to content

Commit 009e4a7

Browse files
authored
Add caching for maven build actions (#2300)
Signed-off-by: Avgustin Marinov <[email protected]>
1 parent cca0a3e commit 009e4a7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/verify-hibernate.yml

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
java-version: 17
4040
cache: 'maven'
4141

42+
- name: Cache local Maven repository
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/.m2/repository
46+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
47+
restore-keys: |
48+
${{ runner.os }}-maven-
49+
4250
- name: Check file license headers
4351
run: mvn license:check --batch-mode
4452

.github/workflows/verify.yml

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
java-version: 17
4040
cache: 'maven'
4141

42+
- name: Cache local Maven repository
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/.m2/repository
46+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
47+
restore-keys: |
48+
${{ runner.os }}-maven-
49+
4250
- name: Check file license headers
4351
run: mvn license:check --batch-mode
4452

0 commit comments

Comments
 (0)