-
-
Notifications
You must be signed in to change notification settings - Fork 237
66 lines (62 loc) · 1.86 KB
/
functional-test.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
61
62
63
64
65
66
name: Functional Tests
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- platformVersion: "11.0"
apiLevel: 30
emuTag: google_apis
- platformVersion: "9.0"
apiLevel: 28
emuTag: default
- platformVersion: "7.1"
apiLevel: 25
emuTag: default
- platformVersion: "5.1"
apiLevel: 22
emuTag: default
env:
CI: true
ANDROID_AVD: emulator
ANDROID_SDK_VERSION: ${{ matrix.apiLevel }}
PLATFORM_VERSION: ${{ matrix.platformVersion }}
EMU_TAG: ${{ matrix.emuTag }}
_FORCE_LOGS: 1
# No hardware acceleration is available for emulators on Ubuntu:
# https://github.com/marketplace/actions/android-emulator-runner#can-i-use-this-action-on-linux-vms
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm install --no-package-lock
name: Install dev dependencies
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- run: nohup adb logcat > logcat.log &
name: Capture Logcat
- uses: reactivecircus/android-emulator-runner@v2
name: e2e_api${{ matrix.apiLevel }}
with:
script: scripts/e2e.sh
avd-name: ${{ env.ANDROID_AVD }}
sdcard-path-or-size: 1500M
api-level: ${{ matrix.apiLevel }}
disable-spellchecker: true
target: ${{ matrix.emuTag }}
- name: Save logcat output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: logcat-api${{ matrix.apiLevel }}
path: logcat.log