File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed
Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 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
4242 - name : Bundle iOS
4343 run : npm run build:ios
4444
45- - name : Build iOS
46- run : |
47- npm run ios:release
48-
4945 - name : Setup iOS simulator
5046 run : |
5147 UDID=$(xcrun simctl list devices | grep "iPhone" | grep "Booted" | head -1 | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})")
@@ -54,10 +50,24 @@ jobs:
5450 xcrun simctl boot "${UDID}"
5551 fi
5652 open -a Simulator --args -CurrentDeviceUDID "${UDID}"
57- xcrun simctl launch "${UDID}" com.jscexample
53+
54+ - name : Build iOS
55+ run : |
56+ npm run ios:release
5857
5958 - name : Run iOS tests
60- run : export MAESTRO_DRIVER_STARTUP_TIMEOUT=190000; npm run test:e2e
59+ run : |
60+ export MAESTRO_DRIVER_STARTUP_TIMEOUT=190000
61+ export MAESTRO_WAIT_TIMEOUT=10000
62+ npm run test:e2e
63+
64+ - name : Upload Maestro screenshots
65+ uses : actions/upload-artifact@v4
66+ if : always()
67+ with :
68+ name : ios-maestro-screenshots
69+ path : /Users/runner/.maestro/tests/
70+ retention-days : 5
6171
6272 android-build :
6373 name : Android Build
91101
92102 - name : Install Maestro CLI
93103 run : |
94- export MAESTRO_VERSION=1.39.13; curl -Ls "https://get.maestro.mobile.dev" | bash
104+ curl -Ls "https://get.maestro.mobile.dev" | bash
95105
96106 - name : Add Maestro to path
97107 run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
Original file line number Diff line number Diff line change 1313 "mkdist" : " node -e \" require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\" " ,
1414 "build:android" : " npm run mkdist && react-native bundle --entry-file index.js --platform android --dev false --bundle-output dist/main.android.jsbundle --assets-dest dist/res" ,
1515 "build:ios" : " npm run mkdist && react-native bundle --entry-file index.js --platform ios --dev false --bundle-output dist/main.ios.jsbundle --assets-dest dist" ,
16- "test:e2e" : " maestro test maestro-tests/base.yaml "
16+ "test:e2e" : " maestro test maestro-tests"
1717 },
1818 "dependencies" : {
1919 "react" : " 19.0.0" ,
You can’t perform that action at this time.
0 commit comments