From 7541a191d613c5bccaaae9737f97ee1074c937a1 Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Mon, 28 Sep 2020 11:53:00 +0700 Subject: [PATCH] Try to workaround emulator issues --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cba72ab..6b8afe45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,14 +21,18 @@ jobs: Android-Test: # Linux machine doesn't support running Android emulator due to lack of nested virtualization runs-on: macos-latest - timeout-minutes: 30 + timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: subosito/flutter-action@v1 - run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-27;google_apis_playstore;x86" + # Make sure adb server is started and the private key is generated to be picked up by the + # emulator + - run: adb devices - run: flutter emulators --create - run: flutter emulators --launch flutter_emulator - - run: adb wait-for-device + # Use this instead of wait-for-device to see errors (e.g. Unauthorized) + - run: until adb shell true; do sleep 1; done - run: flutter drive --target=test_driver/app.dart working-directory: example