Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build APK, execute Regression Test and Publish
on:
pull_request:
branches:
- main
- develop

jobs:
build_verify_distribute:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/emulator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Emulator Test

on:
pull_request:
branches:
- main

jobs:
emulator_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Check HW supports KVM
run: |
sudo apt install cpu-checker
sudo kvm-ok
37 changes: 37 additions & 0 deletions .github/workflows/mac-emulator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Appium CI

on:
pull_request:
branches:
- main

jobs:
emulator_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Install and Run Appium Server
run: |
chmod +x ./InstallAndRunAppiumServer.sh # install and run appium server in the background
./InstallAndRunAppiumServer.sh

- name: Download AVD and Start Emulator
run: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86_64'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n test_device -k 'system-images;android-28;google_apis;x86_64' --force
echo $ANDROID_HOME/emulator/emulator -list-avds
echo "Booting Emulators"
nohup $ANDROID_HOME/emulator/emulator -avd test_device -no-snapshot > /dev/null 2>&1 &
$ANDROID_HOME/platform-tools/adb -s emulator-5554 wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'

- name: Check Android Emulator
run: |
echo "Running Emulator"
$ANDROID_HOME/platform-tools/adb devices
echo "Emulator started"
4 changes: 4 additions & 0 deletions InstallAndRunAppiumServer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -ex
npm install -g appium
appium -v