Skip to content

Commit 4789d2f

Browse files
committed
Run tests in parallel
1 parent 27318e2 commit 4789d2f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,14 @@ jobs:
123123
~/.android/adb*
124124
key: avd-${{ matrix.api-level }}
125125

126-
- name: create AVD and generate snapshot for caching
127-
if: steps.avd-cache.outputs.cache-hit != 'true'
128-
uses: reactivecircus/android-emulator-runner@v2
129-
with:
130-
api-level: ${{ matrix.api-level }}
131-
force-avd-creation: false
132-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front emulated -camera-back emulated
133-
disable-animations: false
134-
script: echo "Generated AVD snapshot for caching."
135-
136126
- name: Run Instrumentation Tests
137127
uses: reactivecircus/android-emulator-runner@v2
138128
with:
139129
api-level: ${{ matrix.api-level }}
140130
force-avd-creation: false
141131
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front emulated -camera-back emulated
142132
disable-animations: true
143-
script: ./gradlew connectedCheck
133+
script: |
134+
adb wait-for-device
135+
adb shell input keyevent 82
136+
./gradlew connectedAndroidTest --continue

0 commit comments

Comments
 (0)