From 1068ddbaddb17bb8701b9883f7b0f3896e9c3283 Mon Sep 17 00:00:00 2001 From: games647 Date: Tue, 3 Mar 2020 10:47:55 +0100 Subject: [PATCH] Enable Maven cache for runner --- .github/workflows/maven.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2ddf0a3c..875a25cb 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,6 +18,17 @@ jobs: steps: # Pull changes - uses: actions/checkout@v2 + # Cache artifacts - however this has the downside that we don't get notified of + # artifact resolution failures like invalid repository + # Nevertheless the repositories should be more stable and it makes no sense to pull + # a same version every time + # A dry run would make more sense + - uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- # Setup Java - name: Set up JDK uses: actions/setup-java@v1.3.0