From 5951ead1b666d50fef96ea28a99b4bf068458753 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Tue, 23 Feb 2021 11:58:25 -0500 Subject: [PATCH] Cache Maven artifacts to reduce the incidence of plugin resolution failure. --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3adf36c60..54ab36e55 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,5 +12,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Build with Maven - run: mvn -e -B package \ No newline at end of file + run: mvn -e -B package