sdkmanager: system image Q #6
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: Appium setup | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
appium_integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
api-level: [ 29 ] | |
target: [ default ] | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.4' | |
channel: 'stable' | |
- name: Check flutter version | |
run: flutter --version | |
- name: Install flutter dependencies | |
run: flutter pub get | |
- name: Set up NodeJS 18 | |
uses: actions/setup-node@v4 | |
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: 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 | |
./scripts/RunAppiumServer.sh | |
- name: Run Appium Tests | |
uses: reactivecircus/[email protected] | |
with: | |
api-level: ${{ matrix.api-level }} | |
target: ${{ matrix.target }} | |
arch: x86_64 | |
profile: pixel 6a | |
script: ./gradlew connectedCheck |