From 396fce7155bd5b2ae0da66e74ec58ed937d43a72 Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Tue, 4 Jan 2022 00:56:09 -0800 Subject: [PATCH] Disable animations when running tests on emulator --- .github/workflows/android.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0fe00d55..d97d6f66 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -148,7 +148,12 @@ jobs: force-avd-creation: false emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true - script: ./gradlew connectedCheck --stacktrace + script: > + adb shell settings put global window_animation_scale 0 && + adb shell settings put global transition_animation_scale 0 && + adb shell settings put global animator_duration_scale 0 && + adb shell input keyevent 82 && + ./gradlew connectedCheck --stacktrace - name: Upload reports uses: actions/upload-artifact@v2