Skip to content

Commit f9d6abb

Browse files
committed
[actions] Cache maven depenencies
https://github.com/actions/cache
1 parent 2f5757d commit f9d6abb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2009-2020 the original author or authors.
2+
# Copyright 2009-2021 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -35,5 +35,12 @@ jobs:
3535
uses: actions/setup-java@v1
3636
with:
3737
java-version: ${{ matrix.java }}
38+
- name: Cache local Maven repository
39+
uses: actions/cache@v2
40+
with:
41+
path: ~/.m2/repository
42+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
43+
restore-keys: |
44+
${{ runner.os }}-maven-
3845
- name: Test with Maven
3946
run: ./mvnw test -B -D"license.skip=true"

0 commit comments

Comments
 (0)