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 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
42
42
- name : Bundle iOS
43
43
run : npm run build:ios
44
44
45
- - name : Build iOS
46
- run : |
47
- npm run ios:release
48
-
49
45
- name : Setup iOS simulator
50
46
run : |
51
47
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:
54
50
xcrun simctl boot "${UDID}"
55
51
fi
56
52
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
58
57
59
58
- 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
61
71
62
72
android-build :
63
73
name : Android Build
91
101
92
102
- name : Install Maestro CLI
93
103
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
95
105
96
106
- name : Add Maestro to path
97
107
run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
Original file line number Diff line number Diff line change 13
13
"mkdist" : " node -e \" require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\" " ,
14
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
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 "
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