summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-01-09 14:18:43 +0100
committerGitHub <noreply@github.com>2020-01-09 14:18:43 +0100
commit4bb1ee8fe66df4456ab0e9cdd8b96d54b7c6b267 (patch)
tree9ffa06ddeafec92750ea8b824d83adaa7c74976a
parente1f3452e619fd0fa7406611846a832d85eb1da12 (diff)
parent6c33c6895f7ff22fcdeca2049c3805e54539b6a0 (diff)
downloadAntennaPod-4bb1ee8fe66df4456ab0e9cdd8b96d54b7c6b267.zip
Merge pull request #3740 from ByteHamster/retry-tests
Retry tests automatically
-rw-r--r--.github/workflows/android-emulator.yml5
-rw-r--r--.github/workflows/runTests.sh6
2 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/android-emulator.yml b/.github/workflows/android-emulator.yml
index d42b4504e..52c6f0f69 100644
--- a/.github/workflows/android-emulator.yml
+++ b/.github/workflows/android-emulator.yml
@@ -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:
diff --git a/.github/workflows/runTests.sh b/.github/workflows/runTests.sh
new file mode 100644
index 000000000..c631cce72
--- /dev/null
+++ b/.github/workflows/runTests.sh
@@ -0,0 +1,6 @@
+runTests() {
+ ./gradlew connectedPlayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi
+}
+
+# Retry tests to make them less flaky
+runTests || runTests || runTests