File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,25 +226,25 @@ jobs:
226226 wait_for_boot : true
227227 erase_before_boot : false
228228
229- - name : Install app
230- run : |
231- xcrun simctl install booted ./apps/${{ matrix.app }}/ios/build/Build/Products/Debug-iphonesimulator/Playground.app
232-
233229 - name : Record emulator
234230 run : |
235231 mkdir -p video
236232 xcrun simctl io booted recordVideo "video/ios-${{ matrix.app }}.mp4" &
237- RECORD_PID=$!
233+ echo " RECORD_PID=$RECORD_PID" >> $GITHUB_ENV
238234 echo "Recording started, running app..."
239235
236+ - name : Install app
237+ run : |
238+ xcrun simctl install booted ./apps/${{ matrix.app }}/ios/build/Build/Products/Debug-iphonesimulator/Playground.app
239+
240240 - name : Run E2E tests
241241 run : |
242242 pnpm nx run @react-native-harness/${{ matrix.app }}:start --args="--harnessRunner ios"
243243
244244 - name : Capture simulator screenshot on failure
245245 if : always()
246246 run : |
247- echo "Stopping recording..."
247+ echo "Stopping recording with PID $RECORD_PID ..."
248248 kill $RECORD_PID || true
249249 sleep 2
250250
You can’t perform that action at this time.
0 commit comments