Skip to content

Commit

Permalink
Try to workaround emulator issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ppornkitpras-agoda committed Sep 28, 2020
1 parent 41132a0 commit 7541a19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7541a19

Please sign in to comment.