From 71c44dc805bbebc4d45f737e00d81046bcd1b07f Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Wed, 29 Jan 2020 17:12:02 -0800 Subject: [PATCH] Move CI to cache .m2 directory --- .github/workflows/maven-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 1d4f089258..34cd291195 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -17,7 +17,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} - - name: Maven Download all dependencies - run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline -D enable-ci + - name: Cached .m2 + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Maven Build run: mvn -B install site -D enable-ci --file pom.xml