From 9bd170059ba9d2f631cb3f0ad73a795cfb24b593 Mon Sep 17 00:00:00 2001 From: Assad Riaz Date: Mon, 21 Oct 2024 23:24:51 +0200 Subject: [PATCH] upcate github actions config, add cache to speedup build --- .github/workflows/entur-push.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/entur-push.yml b/.github/workflows/entur-push.yml index 11e6abc3c..83f79e07d 100644 --- a/.github/workflows/entur-push.yml +++ b/.github/workflows/entur-push.yml @@ -23,8 +23,17 @@ jobs: with: java-version: 21 distribution: temurin - cache: 'maven' - - run: mvn verify -s .github/workflows/settings.xml + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + ${{ runner.os }}-maven- + + - name: Run maven build + run: mvn verify -s .github/workflows/settings.xml - uses: actions/upload-artifact@v4.4.0 with: path: target/*.jar