Skip to content

Commit c95caab

Browse files
committed
feat: add cache to maven in build action
1 parent c11f2c7 commit c95caab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
cd ./reference-code
3535
mvn verify
3636
37+
- name: Cache local Maven repository
38+
uses: actions/cache@v3
39+
with:
40+
path: ~/.m2/repository
41+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
42+
restore-keys: |
43+
${{ runner.os }}-maven-
44+
3745
- name: Setup Node.js
3846
uses: actions/setup-node@v2
3947
with:

reference-code/src/test/java/test/LoadMockCommandAPI.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.junit.jupiter.api.BeforeEach;
1111

1212
class LoadMockCommandAPI {
13-
test
1413
// #region loadMockCommandAPIExample
1514
@BeforeEach
1615
public void setUp() {

0 commit comments

Comments
 (0)