Skip to content

Commit

Permalink
upcate github actions config, add cache to speedup build
Browse files Browse the repository at this point in the history
  • Loading branch information
assadriaz committed Oct 21, 2024
1 parent 7074671 commit 9bd1700
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/entur-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bd1700

Please sign in to comment.