@@ -32,19 +32,19 @@ jobs:
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
39
39
- name : Add Maestro to path
40
40
run : echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
41
41
42
- - name : Bundle iOS
43
- run : npm run build:ios
42
+ - name : Start packager
43
+ run : npm start &
44
44
45
45
- name : Build iOS
46
46
run : |
47
- npm run ios:release
47
+ npm run ios
48
48
49
49
- name : Setup iOS simulator
50
50
run : |
@@ -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
0 commit comments