Skip to content

Commit 67b4174

Browse files
committed
CI: Run tests before publishing
So we don't publish if tests fail
1 parent 72e7702 commit 67b4174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
with:
2828
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
2929

30-
- name: Compile and release
31-
run: ./gradlew publishToMavenCentral
30+
- name: Compile, test and release
31+
run: ./gradlew build publishToMavenCentral
3232
env:
3333
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
3434
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

0 commit comments

Comments
 (0)