Skip to content

Commit ac468e1

Browse files
committed
fix: update E2E workflow to capture logcat output and streamline artifact uploads
- Modified the E2E workflow script to redirect logcat output to a file, allowing for better debugging information during test failures. - Changed the artifact upload step to focus on the logcat output instead of previous test results and screenshots, simplifying the reporting process. - These updates enhance the visibility of errors during end-to-end testing and improve the overall workflow efficiency.
1 parent a9d6354 commit ac468e1

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,10 @@ jobs:
156156
arch: x86_64
157157
disable-animations: true
158158
emulator-options: "-no-snapshot -no-boot-anim -no-window -gpu swiftshader_indirect -memory 2048 -cores 2"
159-
script: npm start & METRO_PID=$! && cd android && ./gradlew assembleDebug && cd .. && adb install -r android/app/build/outputs/apk/debug/app-debug.apk && npm run e2e:test && pkill -f "Metro" || true
159+
script: npm start & METRO_PID=$! && cd android && ./gradlew assembleDebug && cd .. && adb install -r android/app/build/outputs/apk/debug/app-debug.apk && adb logcat *:E > logcat.txt & (npm run e2e:test || (echo "Test failed"; pkill -f "Metro"; exit 1))
160160

161-
- name: Upload test results
161+
- name: Upload logcat
162162
uses: actions/upload-artifact@v4
163-
if: always()
164163
with:
165-
name: e2e-test-results-android
166-
path: e2e/reports/
167-
168-
- name: Upload screenshots
169-
uses: actions/upload-artifact@v4
170-
if: failure()
171-
with:
172-
name: e2e-screenshots-android
173-
path: e2e/reports/screenshots/
164+
name: e2e-logcat-android
165+
path: logcat.txt

0 commit comments

Comments
 (0)