Skip to content

Commit

Permalink
build: Added driver installation and moved test into emulator run action
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-perri committed Oct 7, 2023
1 parent a6305c9 commit 9e23ee1
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/appium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,21 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Run emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew assembleDebug

- name: Install Appium
run: npm install -g appium

- name: Install UIAutomator2
run: appium driver install uiautomator2

- name: Install dependencies
run: npm install
working-directory: ./tests

- name: Start Appium server
run: appium &

- name: Run tests
run: npm run test
working-directory: ./tests
- name: Run emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: cd tests && npm run test

0 comments on commit 9e23ee1

Please sign in to comment.