From 49092a53e63752ca13f6e0d1c1d94009a00b78b8 Mon Sep 17 00:00:00 2001 From: Christian Femers Date: Fri, 11 Sep 2020 15:34:27 +0200 Subject: [PATCH] Cache Maven dependencies in GitHub Actions --- .github/workflows/maven.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d9ea203b..605bdf82 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -19,5 +19,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Cache Maven Dependencies + uses: actions/cache@v2.1.1 + with: + path: ~/.m2/repository + key: mograsim-maven-${{ hashFiles('**/pom.xml,**/MANIFEST.MF') }} + restore-keys: | + mograsim-maven- - name: Build with Maven run: mvn --batch-mode --errors --fail-at-end --show-version clean verify --file pom.xml -- 2.17.1