Skip to content

Commit 061ce2c

Browse files
committed
GitHub Actions: use default caching from setup-java action.
1 parent 343c4ee commit 061ce2c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@ jobs:
1414
with:
1515
java-version: '11'
1616
distribution: 'adopt'
17-
- name: Cache Maven packages
18-
uses: actions/cache@v2
19-
with:
20-
path: ~/.m2
21-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
22-
restore-keys: ${{ runner.os }}-m2
17+
cache: maven
2318
- name: Build with Maven
2419
run: mvn --batch-mode -show-version --update-snapshots --errors package
2520
- name: Publish Unit Test Results
2621
uses: EnricoMi/publish-unit-test-result-action@v1
27-
if: always() # also run if build/step step failed
22+
if: always() # also run if build step failed
2823
with:
2924
files: target/surefire-reports/*.xml

0 commit comments

Comments
 (0)