Android Mobile CI - MAC OS #54
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 Mobile CI - MAC OS | |
on: | |
workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Install Appium 2.0 | |
run: | | |
npm install -g appium@next appium-doctor | |
appium driver install uiautomator2 | |
appium driver list --installed | |
appium-doctor --android | |
- name: Start Appium server | |
run: | | |
nohup appium & | |
- name: Wait for Appium server to start | |
run: sleep 15 | |
- name: run android tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: mvn clean test |