Skip to content

Commit

Permalink
Cache maven artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
badgerwithagun committed Mar 26, 2024
1 parent a433ab0 commit 3169d9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ jobs:
java-package: jdk
java-version: 21
cache: 'maven'
- uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
key: maven
- name: build
run: mvn -Pconcise,delombok -B fmt:check package test-compile -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: maven
- uses: actions/upload-artifact@v4
with:
name: build
Expand All @@ -39,6 +48,10 @@ jobs:
java-package: jdk
java-version: ${{ matrix.jdk }}
cache: 'maven'
- uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
key: maven
- uses: actions/download-artifact@v4
with:
name: build
Expand Down

0 comments on commit 3169d9f

Please sign in to comment.