1515 BUILD_PATH : " build/outputs/apk/release"
1616 APK_NAME : " sentry-uitest-android-critical-release.apk"
1717 APK_ARTIFACT_NAME : " sentry-uitest-android-critical-release"
18- MAESTRO_VERSION : " 1.39 .0"
18+ MAESTRO_VERSION : " 2.1 .0"
1919
2020jobs :
2121 build :
3636 java-version : ' 17'
3737
3838 - name : Setup Gradle
39- uses : gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2
39+ uses : gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884
4040 with :
4141 cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4242
@@ -60,23 +60,23 @@ jobs:
6060 matrix :
6161 include :
6262 - api-level : 31 # Android 12
63- target : aosp_atd
63+ target : google_apis
6464 channel : canary # Necessary for ATDs
6565 arch : x86_64
6666 - api-level : 33 # Android 13
67- target : aosp_atd
67+ target : google_apis
6868 channel : canary # Necessary for ATDs
6969 arch : x86_64
7070 - api-level : 34 # Android 14
71- target : aosp_atd
71+ target : google_apis
7272 channel : canary # Necessary for ATDs
7373 arch : x86_64
7474 - api-level : 35 # Android 15
75- target : aosp_atd
75+ target : google_apis
7676 channel : canary # Necessary for ATDs
7777 arch : x86_64
7878 - api-level : 36 # Android 16
79- target : aosp_atd
79+ target : google_apis
8080 channel : canary # Necessary for ATDs
8181 arch : x86_64
8282 steps :
@@ -109,7 +109,7 @@ jobs:
109109 force-avd-creation : false
110110 disable-animations : true
111111 disable-spellchecker : true
112- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
112+ emulator-options : -memory 4096 - no-window -gpu auto -noaudio -no-boot-anim -camera-back none
113113 disk-size : 4096M
114114 script : echo "Generated AVD snapshot for caching."
115115
@@ -133,16 +133,16 @@ jobs:
133133 force-avd-creation : false
134134 disable-animations : true
135135 disable-spellchecker : true
136- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
136+ emulator-options : -memory 4096 - no-window -gpu auto -noaudio -no-boot-anim -camera-back none -no-snapshot-save
137137 script : |
138138 adb uninstall io.sentry.uitest.android.critical || echo "Already uninstalled (or not found)"
139139 adb install -r -d "${{env.APK_NAME}}"
140- maestro test "${{env.BASE_PATH}}/maestro" --debug -output "${{env.BASE_PATH}}/maestro-logs"
140+ mkdir "${{env.BASE_PATH}}/ maestro-logs/" || true; adb emu screenrecord start --time-limit 360 "${{env.BASE_PATH}}/maestro-logs/recording.webm" || true; maestro test "${{env.BASE_PATH}}/maestro" --test -output-dir="${{env.BASE_PATH}}/maestro-logs/test-output" || MAESTRO_EXIT_CODE=$?; adb emu screenrecord stop || true; adb logcat -d > "${{env.BASE_PATH}}/maestro-logs/logcat.txt" || true; exit ${MAESTRO_EXIT_CODE:-0}
141141
142142 - name : Upload Maestro test results
143- if : failure()
143+ if : ${{ always() }}
144144 uses : actions/upload-artifact@v6
145145 with :
146- name : maestro-logs
146+ name : maestro-logs-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}
147147 path : " ${{env.BASE_PATH}}/maestro-logs"
148148 retention-days : 1
0 commit comments