Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/ios-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# A new simulator renders posters and widgets for over 10 minutes after its first boot, starving
# the app under test, so boot the one Detox uses now and let that overlap with the build
- name: Boot simulator
run: |
UDID=$("$GITHUB_WORKSPACE/scripts/ci/pick-ios-simulator.sh")
echo "DETOX_DEVICE_UDID=$UDID" >> "$GITHUB_ENV"
xcrun simctl boot "$UDID"

# Fork PRs get no secrets; fall back to the public rotated CI token (see rnmapbox/ci-config)
- name: Access Token
run: |
Expand Down Expand Up @@ -145,12 +153,10 @@ jobs:
xcodebuild -version
set -o pipefail && NSUnbufferedIO=YES yarn detox build --configuration "$DETOX_CONFIGURATION" 2>&1

- name: Boot simulator
- name: Wait for the simulator
run: |
UDID=$("$GITHUB_WORKSPACE/scripts/ci/pick-ios-simulator.sh")
echo "DETOX_DEVICE_UDID=$UDID" >> "$GITHUB_ENV"
xcrun simctl boot "$UDID"
time xcrun simctl bootstatus "$UDID"
time xcrun simctl bootstatus "$DETOX_DEVICE_UDID"
echo "load: $(sysctl -n vm.loadavg), free: $(vm_stat | awk '/Pages free/ {print int($3 * 16384 / 1048576)}') MB"

- name: Test with detox
if: inputs.E2E_MODE == 'test'
Expand Down
Loading