Skip to content

Commit 37d3798

Browse files
committed
fix: combine Metro and app warmup into single step
1 parent 70487a7 commit 37d3798

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,17 @@ jobs:
268268
run: |
269269
xcrun simctl install booted example/ios/build/Build/Products/Debug-iphonesimulator/RiveExample.app
270270
271-
- name: Debug - Test app launch
271+
- name: Warmup - Start Metro and launch app once
272272
run: |
273-
echo "Attempting to launch app..."
274-
xcrun simctl launch --console booted rive.example 2>&1 &
273+
cd example
274+
yarn start &
275+
METRO_PID=$!
275276
sleep 10
276-
echo "Checking if app is running..."
277-
xcrun simctl listapps booted | grep -A5 "rive.example" || true
277+
echo "Launching app to warm up..."
278+
xcrun simctl launch booted rive.example
279+
sleep 5
278280
xcrun simctl terminate booted rive.example || true
281+
kill $METRO_PID || true
279282
280283
- name: Run harness tests on iOS
281284
timeout-minutes: 10

0 commit comments

Comments
 (0)