Skip to content

Commit f62881b

Browse files
committed
chore: Remove actions/cache; use setup-java cache param
1 parent 220ee9f commit f62881b

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
uses: actions/setup-java@v2
2525
with:
2626
java-version: 8
27-
distribution: 'zulu'
27+
distribution: 'adopt'
28+
cache: maven
2829
- name: Set artifact version
2930
run: script/version_snapshot.sh
3031
shell: bash
@@ -63,13 +64,7 @@ jobs:
6364
with:
6465
java-version: ${{ matrix.jdk }}
6566
distribution: ${{ matrix.distribution }}
66-
- name: Cache Maven dependencies
67-
timeout-minutes: 10
68-
uses: actions/cache@v1
69-
with:
70-
path: ~/.m2
71-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
72-
restore-keys: ${{ runner.os }}-m2
67+
cache: maven
7368
- name: Set artifact version
7469
run: script/version_snapshot.sh
7570
shell: bash
@@ -99,17 +94,11 @@ jobs:
9994
uses: actions/setup-java@v2
10095
with:
10196
java-version: 11
102-
distribution: 'zulu'
97+
distribution: 'adopt'
98+
cache: maven
10399
- name: Set artifact version
104100
run: script/version_snapshot.sh
105101
shell: bash
106-
- name: Cache Maven dependencies
107-
timeout-minutes: 10
108-
uses: actions/cache@v1
109-
with:
110-
path: ~/.m2
111-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
112-
restore-keys: ${{ runner.os }}-m2
113102
- name: SonarCloud scan of ${{ github.ref }}
114103
run: >
115104
mvn -P jacoco -B

0 commit comments

Comments
 (0)