Skip to content

Commit 71c44dc

Browse files
committed
Move CI to cache .m2 directory
1 parent c5c8596 commit 71c44dc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ jobs:
1717
uses: actions/setup-java@v1
1818
with:
1919
java-version: ${{ matrix.java }}
20-
- name: Maven Download all dependencies
21-
run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline -D enable-ci
20+
- name: Cached .m2
21+
uses: actions/cache@v1
22+
with:
23+
path: ~/.m2/repository
24+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+
restore-keys: |
26+
${{ runner.os }}-maven-
2227
- name: Maven Build
2328
run: mvn -B install site -D enable-ci --file pom.xml

0 commit comments

Comments
 (0)