GitHub Action
Appium Server Action
Running Appium Server with GitHub Action to be able to run Appium mobile test automation scripts
Appium is an open-source test automation framework for use with native, hybrid and mobile web apps. It drives iOS, Android, and Windows apps using the WebDriver protocol.
The problem now that, how can we run an Appium server on GitHub Actions? Because we are using a GUI tool like Appium Desktop on our local machines, So we need to run the Appium server from the command line and in the background to be able to run the rest of the commands.
I created this GitHub action to install the Appium server using nodeJS and npm then running it in the background.
workflow/main.yml:
name: Android CI
on: [push]
jobs:
Sauce Labs App Automate:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install and Run Appium Server
uses: moatazeldebsy/appium-server-gitHub-action@V1.0.3
workflow/android.yml:
name: Appium CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [25]
target: [default]
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
uses: moatazeldebsy/appium-server-gitHub-action@V1.0.3
- name: Run Appium Tests
uses: reactivecircus/android-emulator-runner@v1
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
script: ./gradlew test --info
Are you facing an issue? Have some questions? Would like to implement a new feature? Learn more about our contributing guidelines.
The project is released under the MIT License.