-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (35 loc) · 1.17 KB
/
android-connectedcheck.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
name: Android connectedCheck
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Android connectedCheck
runs-on: ubuntu-latest
strategy:
matrix:
# Not sure, API level 24 looks like some threshold for UI testing
api-level: [22, 24, 29]
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
# For running ReactiveCircus/android-emulator-runner
# https://github.com/ReactiveCircus/android-emulator-runner/blob/a3dcdb348bb02349cd939d168a74e31a9094b7f0/README.md
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Android Emulator Runner
uses: ReactiveCircus/android-emulator-runner@v2.32.0
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedCheck