File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ jobs:
173173 curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&inlineSourceMap=true"
174174 echo "...javascript bundle ready"
175175
176+ - name : Record App Video
177+ # With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
178+ continue-on-error : true
179+ run : nohup sh -c "sleep 30 && xcrun simctl io booted recordVideo --codec=h264 -f simulator.mp4 2>&1 &"
180+
176181 - name : Create Simulator Log
177182 # With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
178183 # If you boot the simulator separately from detox, some other race fails and detox testee never sends ready to proxy
@@ -183,6 +188,18 @@ jobs:
183188 timeout-minutes : 50
184189 run : yarn tests:ios:test-cover
185190
191+ - name : Stop App Video
192+ if : always()
193+ run : killall -INT simctl
194+
195+ - name : Upload App Video
196+ uses : actions/upload-artifact@v4
197+ continue-on-error : true
198+ if : always()
199+ with :
200+ name : simulator_video
201+ path : simulator.mp4
202+
186203 - name : Upload Simulator Log
187204 uses : actions/upload-artifact@v4
188205 if : always()
You can’t perform that action at this time.
0 commit comments