Retry tests automatically
This commit is contained in:
parent
a8b126221c
commit
6c33c6895f
|
@ -16,12 +16,11 @@ jobs:
|
|||
- name: Build with Gradle
|
||||
run: ./gradlew assemblePlayDebugAndroidTest
|
||||
- name: Android Emulator test
|
||||
uses: ReactiveCircus/android-emulator-runner@v1.0.1
|
||||
uses: ReactiveCircus/android-emulator-runner@v2.2.0
|
||||
with:
|
||||
api-level: 28
|
||||
headless: true
|
||||
disable-animations: true
|
||||
script: ./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
|
||||
script: zsh .github/workflows/runTests.sh
|
||||
- uses: actions/upload-artifact@v1
|
||||
if: failure()
|
||||
with:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
runTests() {
|
||||
./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
|
||||
}
|
||||
|
||||
# Retry tests to make them less flaky
|
||||
runTests || runTests || runTests
|
Loading…
Reference in New Issue