-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.2 KB
/
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
51
52
53
54
55
56
57
58
59
60
name: Appium Tests
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
settings-tests:
name: Settings 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: '16'
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Install Appium
run: npm install -g appium@next
- name: Install UIAutomator2
run: appium driver install uiautomator2
- name: Run Appium
run: appium &
- name: Run tests
uses: ReactiveCircus/android-emulator-runner@v2
env:
APPIUM_PORT: 4723
APPIUM_HOST: localhost
LOG_LEVEL: info
with:
api-level: 30
target: google_apis
arch: x86_64
script: yarn test
- name: Upload HTML artifact
uses: actions/upload-artifact@v2
with:
name: report
path: mochawesome-report/