-
Notifications
You must be signed in to change notification settings - Fork 127
37 lines (32 loc) · 1021 Bytes
/
adb-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
name: ADB Test
on: push
jobs:
adb-test:
name: Run Detox tests on Android
runs-on: ["self-hosted", "Linux", "X64"]
steps:
- uses: actions/setup-node@v2
with:
node-version: 20
- run: npm i -g yarn
- uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin
- uses: android-actions/setup-android@v3
- name: Enable KVM group perms
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: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: x86_64
profile: Nexus 6
avd-name: Pixel_API_29_AOSP
script: |
cd ~/galoy-mobile
yarn install
yarn e2e:test android.emu.debug -d -R 3 --headless