Skip to content

Commit

Permalink
run gradle test on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnielens committed May 22, 2024
1 parent 9e47f26 commit c32ccb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ '**' ]
env:
OSSRHUSERNAME: ${{ secrets.OSSRHUSERNAME }}
OSSRHPASSWORD: ${{ secrets.OSSRHPASSWORD }}
Expand All @@ -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
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ wrapper {
}

test {
useJUnitPlatform()
maxParallelForks = Runtime.runtime.availableProcessors() * 4
}

Expand Down

0 comments on commit c32ccb5

Please sign in to comment.