Skip to content

Commit

Permalink
Update e2e_android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Jun 18, 2024
1 parent c726a6e commit 7efe608
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/e2e_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@ jobs:
java-version: '8'
distribution: 'zulu'

- name: Update Android SDK
run: |
sdkmanager --update
sdkmanager "platform-tools" "emulator"
# Use the Android command line tools to download an AOSP emulator image, and setup new avd
# The name of the device for testing has to be the same as on the .detoxrc.js file (even if it is not a Pixel)
# There were errors when setting Java version used to either 11 or 17 explicitly here.
- name: Download Android Emulator Image
run: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --update
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "platform-tools"
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "emulator"
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-31;default;x86_64"
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd --force --name Pixel_5_API_31_AOSP --device "Nexus 5X" -k 'system-images;android-31;default;x86_64'
AVD_PATH="$HOME/.android/avd/Pixel_5_API_31_AOSP.avd"
Expand Down

0 comments on commit 7efe608

Please sign in to comment.