Skip to content

Commit cff97ae

Browse files
committed
chore: fix workflow
1 parent 1945177 commit cff97ae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)