Modify config file after avd creation #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Build & Render Test | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Install Android build tools and platform | |
run: | | |
sdkmanager --install "build-tools;33.0.0" "platforms;android-33" "ndk;25.1.8937393" | |
- name: Install dependencies | |
run: | | |
npm install -g yarn | |
yarn install | |
- name: Install Maestro | |
run: | | |
curl -Ls "https://get.maestro.mobile.dev" | bash | |
echo "$HOME/.maestro/bin" >> $GITHUB_PATH | |
- name: Install Android build tools and platform | |
run: | | |
sdkmanager --install "build-tools;34.0.0" "platforms;android-34" "ndk;25.1.8937393" "system-images;android-34;google_apis;x86_64" | |
sdkmanager --licenses | |
- name: Enable KVM | |
run: | | |
echo "Installing KVM" | |
sudo apt-get update | |
sudo apt-get --quiet install --yes qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils | |
sudo adduser $USER kvm | |
sudo chown $USER /dev/kvm | |
sudo chmod o+rw /dev/kvm | |
groups $USER | |
- name: Run Android Build and Tests | |
run: bash tests/test-android.sh | |
- name: Upload Maestro artifacts | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maestro-artifacts | |
path: | | |
~/.maestro/tests/ | |
/home/runner/.maestro/tests/ | |
/home/runner/.maestro/logs/ |