Skip to content

Commit 392008f

Browse files
committed
ci: replace docker with android emulator runner action
1 parent 356c8d5 commit 392008f

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/ui-tests.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ jobs:
4141

4242
- name: Build for debug with gradle
4343
run: |
44-
./gradlew assembleDebug assembleAndroidTest -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.output.enable=true
45-
# Verify APKs were built for x86_64
44+
./gradlew assembleDebug assembleAndroidTest
4645
ls -la app/build/outputs/apk/debug/
4746
ls -la app/build/outputs/apk/androidTest/debug/
4847
@@ -85,17 +84,19 @@ jobs:
8584
script: |
8685
# Wait for emulator to be fully ready
8786
adb wait-for-device
88-
while [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" != "1" ]; do
89-
echo "Waiting for boot to complete..."
90-
sleep 10
91-
done
87+
echo "Waiting for boot to complete..."
88+
adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done'
89+
sleep 10
9290
93-
# Verify emulator architecture
94-
adb shell getprop ro.product.cpu.abi
91+
# Verify emulator
92+
echo "Emulator properties:"
93+
adb shell getprop
94+
echo "APK info:"
95+
adb shell pm list packages
9596
9697
# Install and run tests
97-
./gradlew installDebug -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.output.enable=true
98-
./gradlew connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.output.enable=true
98+
./gradlew installDebug
99+
./gradlew connectedDebugAndroidTest
99100
100101
- name: Upload UI test report
101102
if: always()
@@ -105,6 +106,4 @@ jobs:
105106
path: |
106107
app/build/reports/androidTests/connected/**/*
107108
app/build/outputs/androidTest-results/connected/**/*
108-
app/build/outputs/androidTest-results/**/*
109-
app/build/outputs/**/androidTest-results/**/*
110109
if-no-files-found: warn

0 commit comments

Comments
 (0)