Retry tests automatically

This commit is contained in:
ByteHamster 2020-01-07 22:13:56 +01:00
parent a8b126221c
commit 6c33c6895f
2 changed files with 8 additions and 3 deletions

View File

@ -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:

6
.github/workflows/runTests.sh vendored Normal file
View File

@ -0,0 +1,6 @@
runTests() {
./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
}
# Retry tests to make them less flaky
runTests || runTests || runTests