Skip to content

Commit 176a352

Browse files
committed
Update compile-backend.yml
1 parent a1dc649 commit 176a352

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/compile-backend.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ on: [push, pull_request]
77

88
# jobs
99
jobs:
10-
# compile
1110
compile-backend:
12-
# runs-on
1311
runs-on: ubuntu-latest
1412
# name
1513
name: Compile Backend Code
16-
# steps
1714
steps:
18-
# uses
1915
- uses: actions/checkout@v3
2016

2117
# name
@@ -25,6 +21,14 @@ jobs:
2521
distribution: 'temurin'
2622
java-version: '17'
2723

24+
# cache
25+
- uses: actions/cache@v2
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: |
30+
${{ runner.os }}-maven-
31+
2832
# name
2933
- name: Compile with Maven
3034
run: |

0 commit comments

Comments
 (0)