Skip to content

Commit

Permalink
Make the main branch cache available to the maven-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Oct 29, 2024
1 parent 23c2a76 commit a419d9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maven-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
key: ${{ runner.os }}-m2-${ github.ref }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-${ github.ref }}
${{ runner.os }}-m2-main
- name: Run tests
run: mvn --batch-mode --update-snapshots -Pproduction clean verify

0 comments on commit a419d9c

Please sign in to comment.