Skip to content

Commit 7c27ee4

Browse files
committed
feat: cache maven
1 parent ac07885 commit 7c27ee4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@ jobs:
2929
distribution: 'temurin'
3030
architecture: x64
3131

32+
- name: Restore Maven Cache
33+
uses: skjolber/[email protected]
34+
with:
35+
step: restore
36+
3237
- name: Verify Reference Codes
3338
run: |
3439
cd ./reference-code
3540
mvn verify
3641
37-
- name: Cache Maven Dependencies
38-
uses: actions/cache@v3
42+
- name: Save Maven Cache
43+
uses: skjolber/maven-cache-github-action@v3.1.1
3944
with:
40-
path: ~/.m2/repository
41-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
42-
restore-keys: |
43-
${{ runner.os }}-maven-
45+
step: save
4446

4547
- name: Setup Node.js
4648
uses: actions/setup-node@v2

0 commit comments

Comments
 (0)