From c32ccb5c1c23032c96753c8e4b5141bd98670a46 Mon Sep 17 00:00:00 2001 From: Tim Nielens Date: Wed, 22 May 2024 12:27:31 +0200 Subject: [PATCH] run gradle test on pull requests --- .github/workflows/gradle.yml | 16 +++++++--------- build.gradle | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 90dcf7b..734c221 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -3,7 +3,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: [ '**' ] env: OSSRHUSERNAME: ${{ secrets.OSSRHUSERNAME }} OSSRHPASSWORD: ${{ secrets.OSSRHPASSWORD }} @@ -17,12 +17,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: 1.8 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew clean test + distribution: temurin + java-version: 17 + - run: chmod +x gradlew + - run: ./gradlew clean check \ No newline at end of file diff --git a/build.gradle b/build.gradle index c3a7168..c27eca5 100644 --- a/build.gradle +++ b/build.gradle @@ -95,6 +95,7 @@ wrapper { } test { + useJUnitPlatform() maxParallelForks = Runtime.runtime.availableProcessors() * 4 }