Skip to content

Commit d65e297

Browse files
authored
Update maven.yml
1 parent 221174e commit d65e297

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ jobs:
2121
java-version: '17'
2222
distribution: 'adopt'
2323
cache: 'maven'
24-
- name: Run Tests
25-
run: mvn test --file pom.xml
24+
- name: Cache Packages
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: ${{ runner.os }}-m2
30+
- name: Build and test project with Maven
31+
run: mvn -B test --file pom.xml

0 commit comments

Comments
 (0)