Skip to content

Commit 20af1ae

Browse files
authored
1 parent c9e8984 commit 20af1ae

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: build
55

66
on: [push, pull_request]
7-
7+
88
jobs:
99
compile:
1010
runs-on: ubuntu-latest
@@ -24,13 +24,7 @@ jobs:
2424
distribution: 'adopt'
2525
java-package: jdk
2626
java-version: ${{ matrix.java }}
27-
28-
- name: Cache Maven packages
29-
uses: actions/cache@v2
30-
with:
31-
path: ~/.m2
32-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
33-
restore-keys: ${{ runner.os }}-m2
27+
cache: 'maven'
3428

3529
- name: Build with maven
36-
run: mvn -B test
30+
run: mvn -B test

0 commit comments

Comments
 (0)