File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 32
32
33
33
- name : Install Maestro CLI
34
34
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
36
36
brew tap facebook/fb
37
37
brew install facebook/fb/idb-companion
38
38
@@ -53,11 +53,22 @@ jobs:
53
53
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})")
54
54
xcrun simctl boot "${UDID}"
55
55
fi
56
- open -a Simulator --args -CurrentDeviceUDID "${UDID}"
56
+ open -a Simulator
57
57
xcrun simctl launch "${UDID}" com.jscexample
58
58
59
59
- 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
61
72
62
73
android-build :
63
74
name : Android Build
91
102
92
103
- name : Install Maestro CLI
93
104
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
95
106
96
107
- name : Add Maestro to path
97
108
run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"android" : " react-native run-android" ,
7
- "android:release" : " react-native run-android --mode Release --no-packager " ,
8
- "ios:release" : " npx react-native run-ios --mode Release --no-packager " ,
7
+ "android:release" : " react-native run-android --mode Release" ,
8
+ "ios:release" : " npx react-native run-ios --mode Release" ,
9
9
"ios" : " react-native run-ios" ,
10
10
"lint" : " eslint ." ,
11
11
"start" : " react-native start" ,
12
12
"test" : " jest" ,
13
13
"mkdist" : " node -e \" require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\" " ,
14
- "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" ,
15
- "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 "
14
+ "build:android" : " npm run mkdist && react-native bundle --entry-file index.js --platform android --bundle-output dist/main.android.jsbundle --assets-dest dist/res" ,
15
+ "build:ios" : " npm run mkdist && react-native bundle --entry-file index.js --platform ios --bundle-output dist/main.ios.jsbundle --assets-dest dist" ,
16
+ "test:e2e" : " maestro test maestro-tests"
17
17
},
18
18
"dependencies" : {
19
19
"react" : " 19.0.0" ,
You can’t perform that action at this time.
0 commit comments