File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ jobs:
3636 server-username : MAVEN_USERNAME
3737 server-password : MAVEN_PASSWORD
3838
39+ cache : ' maven'
40+
3941 - name : Build and deploy to Maven Central
4042 run : .github/scripts/deploy.sh snapshot
4143 env :
4244 MAVEN_USERNAME : ${{ vars.MAVEN_USERNAME }}
4345 MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
4446 MAVEN_GPG_KEY : ${{ secrets.SDK_ROBOT_GPG_PRIVATE_KEY }}
4547 MAVEN_GPG_PASSPHRASE : ' '
48+
49+ - name : Remove artifacts from Maven repo so they're not cached
50+ run : rm -rfv ~/.m2/repository/com/couchbase/client/
Original file line number Diff line number Diff line change 5151 java-version : |
5252 ${{ matrix.java-version }}
5353 17
54+ cache : ' maven'
5455
5556 - name : Compile tests
5657 run : |
@@ -103,6 +104,9 @@ jobs:
103104 TEST_JAVA_HOME=$JAVA_HOME_${{ matrix.java-version }}_X64
104105 ./mvnw --batch-mode -Dmaven.test.failure.ignore=true -Dmaven.javadoc.skip=true verify -Djvm=${TEST_JAVA_HOME}/bin/java
105106
107+ - name : Remove artifacts from Maven repo so they're not cached
108+ run : rm -rfv ~/.m2/repository/com/couchbase/client/
109+
106110 - name : Publish test results
107111 run : |
108112 curl https://raw.githubusercontent.com/couchbaselabs/junit-markdown/refs/heads/main/JunitMarkdown.java --output ${{ runner.temp }}/JunitMarkdown.java
You can’t perform that action at this time.
0 commit comments