Skip to content

Commit

Permalink
add cache for testing
Browse files Browse the repository at this point in the history
Signed-off-by: YanxuanLiu <[email protected]>
  • Loading branch information
YanxuanLiu committed Nov 14, 2023
1 parent 64acb48 commit c90f229
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/mvn-verify-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ jobs:
env | grep JAVA
java -version && mvn --version && echo "ENV JAVA_HOME: $JAVA_HOME, PATH: $PATH"
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# - name: Cache local Maven repository
# uses: actions/cache@v3
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-

- name: package tests check
run: |
Expand Down Expand Up @@ -235,13 +235,13 @@ jobs:
env | grep JAVA
java -version && mvn --version && echo "ENV JAVA_HOME: $JAVA_HOME, PATH: $PATH"
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# - name: Cache local Maven repository
# uses: actions/cache@v3
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-

- name: Build JDK
run: |
Expand Down Expand Up @@ -289,13 +289,13 @@ jobs:
env | grep JAVA
java -version && mvn --version && echo "ENV JAVA_HOME: $JAVA_HOME, PATH: $PATH"
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# - name: Cache local Maven repository
# uses: actions/cache@v3
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-

- name: Install with Maven ${{ matrix.maven-version }}
run: |
Expand Down

0 comments on commit c90f229

Please sign in to comment.