Skip to content

Commit e565efc

Browse files
attempting to fix e2e tests
1 parent 8415586 commit e565efc

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ jobs:
9797

9898
- name: Build Android app
9999
working-directory: ./example
100-
run: npx expo prebuild --platform android && cd android && ./gradlew assembleDebug
100+
run: |
101+
npx expo prebuild --platform android
102+
cd android
103+
./gradlew assembleDebug
104+
ls -la app/build/outputs/apk/debug/
101105
102106
- name: Run Maestro tests
103107
uses: reactivecircus/android-emulator-runner@v2
@@ -109,16 +113,17 @@ jobs:
109113
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
110114
disable-animations: true
111115
script: |
112-
cd example
113-
adb install android/app/build/outputs/apk/debug/app-debug.apk
114-
npm run e2e
116+
cd example/android
117+
adb install app/build/outputs/apk/debug/app-debug.apk
118+
cd ..
119+
maestro test ./maestro/ --format junit --output maestro-results.xml
115120
116121
- name: Upload Maestro test results
117122
if: always()
118123
uses: actions/upload-artifact@v4
119124
with:
120125
name: maestro-test-results
121126
path: |
122-
example/.maestro/
123-
~/.maestro/tests/
127+
example/maestro-results.xml
124128
retention-days: 7
129+
if-no-files-found: warn

0 commit comments

Comments
 (0)