Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Feb 14, 2024
1 parent 0684b90 commit 772da0c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/adb-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ADB Check (Temporary)

on: push

jobs:
test-e2e-android:
name: Run tests on Android
runs-on: ["self-hosted", "Linux", "X64"]

steps:
- uses: actions/checkout@v4
- uses: android-actions/setup-android@v3

- 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: Run Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: adb devices -l
10 changes: 8 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: E2E

on: [pull_request]
on: release

jobs:
build-e2e-android:
Expand Down Expand Up @@ -83,14 +83,20 @@ jobs:
yarn start &
echo "METRO_PID=$!" >> $GITHUB_ENV
- 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: Run Detox Tests (test attempt 1)
continue-on-error: true
id: test1
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
avd-name: Pixel_API_29_AOSP
force-avd-creation: false
force-avd-creation: true
arch: x86_64
script: yarn e2e:test android.emu.debug --headless -d -R 3 --take-screenshots all --record-videos all --record-logs all --headless

Expand Down

0 comments on commit 772da0c

Please sign in to comment.