Skip to content

Commit 4166dfc

Browse files
committed
ci: checks
1 parent 4ae378d commit 4166dfc

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/ui-tests.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [ "master" ]
66
pull_request:
77
branches: [ "master" ]
8-
98
workflow_dispatch:
109

1110
jobs:
@@ -41,22 +40,31 @@ jobs:
4140
run: chmod +x gradlew
4241

4342
- name: Build for debug with gradle
44-
run: ./gradlew assembleDebug
43+
run: ./gradlew assembleDebug assembleAndroidTest
4544

46-
- name: Start Android Emulator
45+
- name: Start Android Emulator and Run Tests
4746
uses: reactivecircus/android-emulator-runner@v2
4847
with:
4948
api-level: 31
5049
arch: x86_64
5150
profile: Nexus 6
51+
disable-animations: true
5252
script: ./gradlew connectedDebugAndroidTest
53-
54-
- name: Run Compose UI tests
55-
run: ./gradlew connectedDebugAndroidTest
53+
pre-emulator-launch: |
54+
adb devices
55+
echo "Emulator will start now..."
56+
post-emulator-launch: |
57+
adb devices
58+
adb shell settings put global window_animation_scale 0.0
59+
adb shell settings put global transition_animation_scale 0.0
60+
adb shell settings put global animator_duration_scale 0.0
61+
adb shell input keyevent 82
5662
5763
- name: Upload UI test report
5864
if: always()
5965
uses: actions/upload-artifact@v4
6066
with:
6167
name: compose_test_report
62-
path: app/build/reports/androidTests/connected/
68+
path: |
69+
app/build/reports/androidTests/connected/
70+
app/build/outputs/androidTest-results/connected/

0 commit comments

Comments
 (0)