Skip to content

Commit

Permalink
ci(ios): record and upload a video of the simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed May 19, 2024
1 parent 39f8f7e commit adc4eea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ jobs:
curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&inlineSourceMap=true"
echo "...javascript bundle ready"
- name: Record App Video
# With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
continue-on-error: true
run: nohup sh -c "sleep 30 && xcrun simctl io booted recordVideo --codec=h264 -f simulator.mp4 2>&1 &"

- name: Create Simulator Log
# With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
# If you boot the simulator separately from detox, some other race fails and detox testee never sends ready to proxy
Expand All @@ -183,6 +188,18 @@ jobs:
timeout-minutes: 50
run: yarn tests:ios:test-cover

- name: Stop App Video
if: always()
run: killall -INT simctl

- name: Upload App Video
uses: actions/upload-artifact@v4
continue-on-error: true
if: always()
with:
name: simulator_video
path: simulator.mp4

- name: Upload Simulator Log
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit adc4eea

Please sign in to comment.