From f599b27ccacf1cdd98b5e8963917cf7267accf51 Mon Sep 17 00:00:00 2001 From: Michael Carleton Date: Tue, 8 Jun 2021 13:54:54 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 61064f4..68e72cd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -23,3 +23,9 @@ jobs: distribution: 'adopt' - name: Build with Maven run: mvn -B package --file pom.xml + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2