Skip to content

Commit

Permalink
Update run-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestian23 committed Oct 10, 2023
1 parent 28c06bc commit 7377a15
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ jobs:

- name: Run JUnit Tests on Linux
run: |
./gradlew test --tests '*' | grep -E 'Test:|PASSED|FAILED'
test_result=${PIPESTATUS[0]}
if [[ $test_result -ne 0 ]]; then
echo "Tests failed with exit code $test_result"
exit 1
fi
./gradlew test --info
test-macos:
runs-on: macos-latest
Expand All @@ -58,12 +53,7 @@ jobs:

- name: Run JUnit Tests on macOS
run: |
./gradlew test --tests '*' | grep -E 'Test:|PASSED|FAILED'
test_result=${PIPESTATUS[0]}
if [[ $test_result -ne 0 ]]; then
echo "Tests failed with exit code $test_result"
exit 1
fi
./gradlew test --info
test-windows:
runs-on: windows-latest
Expand All @@ -80,9 +70,4 @@ jobs:

- name: Run JUnit Tests on Windows
run: |
./gradlew.bat test --tests '*' | findstr /C:"Test:" /C:"PASSED" /C:"FAILED"
test_result=${PIPESTATUS[0]}
if [[ $test_result -ne 0 ]]; then
echo "Tests failed with exit code $test_result"
exit 1
fi
.\gradlew.bat test --info

0 comments on commit 7377a15

Please sign in to comment.