Skip to content

Commit 543c77c

Browse files
committed
Cache Maven dependencies in GHA
1 parent ec01a8b commit 543c77c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test-linux.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
uses: actions/setup-java@v1
2626
with:
2727
java-version: 1.8
28-
28+
- name: Cache Maven packages
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.m2
32+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: ${{ runner.os }}-m2
2934
- name: Test
3035
run: ./mvnw verify -Drabbitmqctl.bin=DOCKER:${{job.services.rabbitmq.id}}

0 commit comments

Comments
 (0)