Skip to content

Commit 1073c48

Browse files
committed
Fix
1 parent cd57454 commit 1073c48

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/dependency-test.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
setup-environment:
4949
runs-on: ubuntu-latest
5050
outputs:
51-
cache-key: ${{ steps.cache-build.outputs.cache-hit }}
51+
cache-key: ${{ steps.cache-build.outputs.cache-key }}
5252
steps:
5353
- name: "Checkout repository"
5454
uses: actions/checkout@v4
@@ -60,18 +60,21 @@ jobs:
6060
java-version: ${{ env.JAVA_VERSION }}
6161
cache: 'maven'
6262

63-
- name: "Build SDK"
64-
run: |
65-
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
66-
mvn $MVN_ARGS
67-
6863
- name: "Cache build"
6964
id: cache-build
7065
uses: actions/cache@v3
7166
with:
72-
path: ~/.m2/repository
67+
path: |
68+
~/.m2/repository
69+
target
7370
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
74-
restore-keys: ${{ runner.os }}-maven-
71+
restore-keys: |
72+
${{ runner.os }}-maven-
73+
74+
- name: "Build SDK"
75+
run: |
76+
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
77+
mvn $MVN_ARGS
7578
7679
test-dependency-versions:
7780
needs: [ fetch-dependency-versions, setup-environment ]
@@ -88,8 +91,10 @@ jobs:
8891
- name: "Restore build cache"
8992
uses: actions/cache@v3
9093
with:
91-
path: ~/.m2/repository
92-
key: ${{ needs.setup-environment.outputs.cache-key }}
94+
path: |
95+
~/.m2/repository
96+
target
97+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
9398

9499
- name: "Run tests with explicit version"
95100
run: |

0 commit comments

Comments
 (0)