-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 981 Bytes
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Appium Tests
on: [push, pull_request]
jobs:
connected-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
cache: 'gradle'
- name: Run connected tests
uses: ReactiveCircus/android-emulator-runner@v2
with:
api-level: 30
target: google_apis
arch: x86_64
script: ./gradlew connectedCheck
- name: Install Appium
run: npm install -g appium
- name: Run Appium
run: appium &
- name: Run tests
env:
APPIUM_PORT: 4723
APPIUM_HOST: localhost
LOG_LEVEL: info
run: yarn test