From 5fc6deeb6009457f128143f7e90e146e9bf1e5fc Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Tue, 26 Nov 2024 17:50:08 +0800 Subject: [PATCH] debug --- .github/workflows/build_and_test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3de4f136..e7ea4662 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -120,4 +120,19 @@ jobs: script: | mv ../archive/dist ../dist npx expo run:android --variant release --no-bundler + adb logcat -c + set +e maestro test maestro.yaml + STATUS=$? + adb logcat -d > adb.log + exit $STATUS + + - name: Upload failed artifacts + if: failure() + uses: actions/upload-artifact@v4 + with: + name: failure_artifacts + path: | + $HOME/.maestro/tests/**/* + test/android/app/build/outputs/apk/release/app-release.apk + test/adb.log