@@ -146,10 +146,10 @@ jobs:
146146 run : |
147147 unset GITHUB_TOKEN
148148 echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
149- - name : " Fetch artifacts from run 676 "
149+ - name : " Fetch artifacts from run 41 "
150150 id : fetch-artifacts
151151 run : |
152- artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14200920117 /artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
152+ artifacts_url=$(gh api "repos/${{ github.repository }}/actions/runs/14242504528 /artifacts" --jq '.artifacts[] | select(.name == "android-app") | .archive_download_url')
153153 echo "Artifacts URL: $artifacts_url"
154154 echo "artifacts_url=$artifacts_url" >> $GITHUB_ENV
155155 - name : " Download Android app"
@@ -209,27 +209,31 @@ jobs:
209209 chmod +x maestro/run_maestro_tests.sh
210210 bash maestro/helpers/prepare_android.sh
211211 bash maestro/run_maestro_tests.sh android
212-
213- - name : " Debug screenshot generation "
212+
213+ - name : " Capture emulator logs "
214214 if : always()
215215 continue-on-error : true
216216 run : |
217- echo "Checking contents of maestro/tests/images/actual/android/ after test execution:"
218- ls -R ${{ github.workspace }}/maestro/tests/images/actual/android/
217+ mkdir -p ${{ github.workspace }}/emulator-logs
218+ adb logcat -d > ${{ github.workspace }}/emulator-logs/emulator-logcat.txt
219+ adb shell dmesg > ${{ github.workspace }}/emulator-logs/emulator-dmesg.txt
220+ shell : bash
221+
222+ - name : " Upload emulator logs"
223+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
224+ continue-on-error : true
225+ if : always()
226+ with :
227+ name : emulator-logs
228+ path : ${{ github.workspace }}/emulator-logs/
229+ if-no-files-found : warn
219230
220231 - name : " Debug root folder"
221232 if : always()
222233 continue-on-error : true
223234 run : |
224235 echo "Checking contents of the root folder:"
225236 ls -R ${{ github.workspace }}
226-
227- - name : " Debug screenshot directory"
228- if : always()
229- continue-on-error : true
230- run : |
231- echo "Checking contents of maestro/tests/images/actual/android/"
232- ls -R ${{ github.workspace }}/maestro/tests/images/actual/android/
233237
234238 - name : " Archive runtime logs"
235239 uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
0 commit comments