@@ -32,19 +32,19 @@ jobs:
3232
3333 - name : Install Maestro CLI
3434 run : |
35- export MAESTRO_VERSION=1.39.13; curl -Ls "https://get.maestro.mobile.dev" | bash
35+ curl -Ls "https://get.maestro.mobile.dev" | bash
3636 brew tap facebook/fb
3737 brew install facebook/fb/idb-companion
3838
3939 - name : Add Maestro to path
4040 run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
4141
42- - name : Bundle iOS
43- run : npm run build:ios
42+ - name : Start packager
43+ run : npm start &
4444
4545 - name : Build iOS
4646 run : |
47- npm run ios:release
47+ npm run ios
4848
4949 - name : Setup iOS simulator
5050 run : |
@@ -53,11 +53,22 @@ jobs:
5353 UDID=$(xcrun simctl list devices available | grep "iPhone" | head -1 | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})")
5454 xcrun simctl boot "${UDID}"
5555 fi
56- open -a Simulator --args -CurrentDeviceUDID "${UDID}"
56+ open -a Simulator
5757 xcrun simctl launch "${UDID}" com.jscexample
5858
5959 - name : Run iOS tests
60- run : export MAESTRO_DRIVER_STARTUP_TIMEOUT=190000; npm run test:e2e
60+ run : |
61+ export MAESTRO_DRIVER_STARTUP_TIMEOUT=190000
62+ export MAESTRO_WAIT_TIMEOUT=10000
63+ npm run test:e2e
64+
65+ - name : Upload Maestro screenshots
66+ uses : actions/upload-artifact@v4
67+ if : always()
68+ with :
69+ name : ios-maestro-screenshots
70+ path : /Users/runner/.maestro/tests/
71+ retention-days : 5
6172
6273 android-build :
6374 name : Android Build
@@ -86,12 +97,12 @@ jobs:
8697 - name : Install dependencies
8798 run : npm install --frozen-lockfile
8899
89- - name : Bundle Android
90- run : npm run build:android
100+ - name : Start packager
101+ run : npm start &
91102
92103 - name : Install Maestro CLI
93104 run : |
94- export MAESTRO_VERSION=1.39.13; curl -Ls "https://get.maestro.mobile.dev" | bash
105+ curl -Ls "https://get.maestro.mobile.dev" | bash
95106
96107 - name : Add Maestro to path
97108 run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
@@ -112,5 +123,5 @@ jobs:
112123 disable-animations : false
113124 working-directory : example
114125 script : |
115- npm run android:release
126+ npm run android
116127 npm run test:e2e
0 commit comments