Browse Source

Added maven dependency cache

Sebastian Stenzel 5 years ago
parent
commit
9205bafc56
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .github/workflows/build.yml

+ 7 - 0
.github/workflows/build.yml

@@ -17,6 +17,13 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: 14
+      - name: Restore Maven Cache
+        uses: actions/cache@v1
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
       - name: Build with Maven
         run: mvn -B package --file main/pom.xml -Pcoverage,release
       - name: Run codacy-coverage-reporter