Skip to content

Commit 4cbd08e

Browse files
committed
chore(ci): use caching
1 parent aff192e commit 4cbd08e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/master-snapshot-release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-maven-
2929
- name: Set up Java and Maven
30-
uses: actions/setup-java@v2.3.0
30+
uses: actions/setup-java@v2
3131
with:
3232
distribution: ${{ matrix.distribution }}
3333
java-version: ${{ matrix.java }}
34+
cache: 'maven'
3435
- name: Run unit tests
3536
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
3637
- name: Set up Minikube
@@ -47,10 +48,11 @@ jobs:
4748
steps:
4849
- uses: actions/checkout@v2
4950
- name: Set up Java and Maven
50-
uses: actions/setup-java@v2.3.0
51+
uses: actions/setup-java@v2
5152
with:
5253
distribution: temurin
5354
java-version: 11
55+
cache: 'maven'
5456
- name: Release Maven package
5557
uses: samuelmeuli/action-maven-publish@v1
5658
with:

.github/workflows/pr.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-maven-
2929
- name: Set up Java and Maven
30-
uses: actions/setup-java@v2.3.0
30+
uses: actions/setup-java@v2
3131
with:
3232
distribution: ${{ matrix.distribution }}
3333
java-version: ${{ matrix.java }}
34+
cache: 'maven'
3435
- name: Check code format
3536
run: ./mvnw ${MAVEN_ARGS} formatter:validate -Dconfigfile=$PWD/contributing/eclipse-google-style.xml --file pom.xml
3637
- name: Run unit tests

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Set up Java and Maven
13-
uses: actions/setup-java@v2.3.0
13+
uses: actions/setup-java@v2
1414
with:
1515
java-version: 11
1616
distribution: temurin
17+
cache: 'maven'
1718
- name: change version to release version
1819
# Assume that RELEASE_VERSION will have form like: "v1.0.1". So we cut the "v"
1920
run: ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
@@ -34,10 +35,11 @@ jobs:
3435
steps:
3536
- uses: actions/checkout@v2
3637
- name: Set up Java and Maven
37-
uses: actions/setup-java@v2.3.0
38+
uses: actions/setup-java@v2
3839
with:
3940
java-version: 11
4041
distribution: temurin
42+
cache: 'maven'
4143
- name: change version to release version
4244
run: |
4345
./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit

0 commit comments

Comments
 (0)