Skip to content

Commit b866aa9

Browse files
authored
github action: fail fast on gradle task
1 parent ff7cb07 commit b866aa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
- name: Build with Gradle
3333
run: |
3434
if [ "$RUNNER_OS" == "Linux" ]; then
35-
./gradlew clean build
35+
./gradlew clean build test --fail-fast
3636
elif [ "$RUNNER_OS" == "macOS" ]; then
37-
./gradlew clean build
37+
./gradlew clean build test --fail-fast
3838
elif [ "$RUNNER_OS" == "Windows" ]; then
39-
./gradlew.bat clean build
39+
./gradlew.bat clean build test --fail-fast
4040
else
4141
echo "$RUNNER_OS not supported"
4242
exit 1
@@ -51,12 +51,12 @@ jobs:
5151
- name: Set up OpenJDK version ...
5252
uses: actions/setup-java@v2
5353
with:
54-
distribution: 'zulu'
54+
distribution: 'temurin'
5555
java-version: ${{ env.currentBuildVersion }}
5656
- name: Grant execute permission for gradlew
5757
run: chmod +x gradlew
5858
- name: Build with Gradle (JDK ${{ env.currentBuildVersion }})
59-
run: ./gradlew clean check jacocoTestReport
59+
run: ./gradlew clean check jacocoTestReport test --fail-fast
6060
- name: Codecov
6161
uses: codecov/codecov-action@v1
6262
with:

0 commit comments

Comments
 (0)