Skip to content

Commit

Permalink
sdkmanager: system image Q
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkev committed Jun 14, 2024
1 parent 2de3cb4 commit bda350d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/appium_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,25 @@ jobs:
with:
node-version: '18.19.0'

- name: Install android SDK + Emulator
run: |
chmod +x scripts/install-android-sdk.sh
scripts/install-android-sdk.sh
shell: bash

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Install the Emulator
run: |
chmod +x scripts/install-android-sdk.sh
scripts/install-android-sdk.sh
shell: bash
- name: Boot the Emulator
run: |
chmod +x scripts/emulator-up.sh
scripts/emulator-up.sh
shell: bash

- name: Start Appium server
run: |
chmod +x ./scripts/RunAppiumServer.sh
Expand Down
3 changes: 2 additions & 1 deletion scripts/install-android-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ source ~/.bashrc

# Install Android Image version 29
yes | sudo sdkmanager "platform-tools" "platforms;android-29" "emulator"
yes | sudo sdkmanager "system-images;android-29;google_apis_playstore;x86"
yes | sudo sdkmanager --channel=0 "system-images;android-Q;google_apis;x86"

emulator -version

echo "INSTALL ANDROID SDK DONE!"

0 comments on commit bda350d

Please sign in to comment.