mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-26 08:44:13 +01:00
Retry tests automatically
This commit is contained in:
parent
a8b126221c
commit
6c33c6895f
5
.github/workflows/android-emulator.yml
vendored
5
.github/workflows/android-emulator.yml
vendored
@ -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
6
.github/workflows/runTests.sh
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user