From aedfcd2a3bd0c6e821348fe22c55b656981876c2 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 9 Dec 2024 17:11:58 -0500 Subject: [PATCH] ci: Ensure Appium port is available Mitigate sporadic Appium server start failures from an occupied port. --- .github/workflows/rnmobile-ios-runner.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index 2b253147cd6f2b..93a4d8ac347886 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -74,6 +74,10 @@ jobs: - name: Build Web Driver Agent (if needed) run: test -d packages/react-native-editor/ios/build/WDA || npm run native test:e2e:build-wda + - name: Ensure Appium port is available + run: | + lsof -ti:4723 | xargs kill -9 || true + - name: Run iOS Device Tests run: TEST_RN_PLATFORM=ios npm run native device-tests:local ${{ matrix.native-test-name }}