Skip to content

Commit

Permalink
ci(gha): add timeout for launch emulator step (#1157)
Browse files Browse the repository at this point in the history
ci(gha): add timeout for launch emulator step
  • Loading branch information
JagadeeshKaricherla-branch authored Dec 29, 2023
1 parent e8a9e38 commit 5d55d8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/unit-and-instrumented-tests-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
echo "no" | $ANDROID_HOME/tools/bin/avdmanager --verbose create avd --force --name test --package "system-images;android-"$API_MIN";google_apis;x86_64"
# boots and waits for the emulator to be ready
- name: Launch Emulator
timeout-minutes: 30
run: |
echo "Starting emulator and waiting for boot to complete."
nohup $ANDROID_HOME/tools/emulator -avd test -no-audio -no-boot-anim -camera-back none -camera-front none -qemu -m 2048 2>&1 &
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
echo "no" | $ANDROID_HOME/tools/bin/avdmanager --verbose create avd --force --name test --package "system-images;android-"$API_MIN";google_apis;x86_64"
# boots and waits for the emulator to be ready
- name: Launch Emulator
timeout-minutes: 30
run: |
echo "Starting emulator and waiting for boot to complete."
nohup $ANDROID_HOME/tools/emulator -avd test -no-audio -no-boot-anim -camera-back none -camera-front none -qemu -m 2048 2>&1 &
Expand Down Expand Up @@ -142,6 +144,7 @@ jobs:
echo "no" | $ANDROID_HOME/tools/bin/avdmanager --verbose create avd --force --name test --package "system-images;android-"$API_CURRENT";google_apis_playstore;x86_64"
# boots and waits for the emulator to be ready
- name: Launch Emulator
timeout-minutes: 30
run: |
echo "Starting emulator and waiting for boot to complete."
nohup $ANDROID_HOME/tools/emulator -avd test -no-audio -no-boot-anim -camera-back none -camera-front none -qemu -m 2048 2>&1 &
Expand Down

0 comments on commit 5d55d8d

Please sign in to comment.