Skip to content

Commit

Permalink
switch back to cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlh authored Mar 11, 2024
1 parent d23eaf4 commit 3fb2dc3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/*.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
cache: 'maven'

- name: Test with Maven
run: mvn test

0 comments on commit 3fb2dc3

Please sign in to comment.