From d009f0563316d9f04bcb7e6d704b0fa9b83b0d10 Mon Sep 17 00:00:00 2001 From: russellwheatley Date: Tue, 17 Sep 2024 09:36:35 +0100 Subject: [PATCH] ci(android): fix emulator failing to shutdown causes test failure --- .github/workflows/android.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 9ee6012c9c56..9c9b6ac7bbb4 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -88,3 +88,8 @@ jobs: working-directory: ${{ matrix.working_directory }} script: | flutter test integration_test/e2e_test.dart --dart-define=CI=true -d emulator-5554 + - name: Ensure Appium is shut down + # Required because of below issue where emulator failing to shut down properly causes tests to fail + # https://github.com/ReactiveCircus/android-emulator-runner/issues/385 + run: | + pgrep -f appium && pkill -f appium || echo "No Appium process found"