From a132f28f1295fb3b24ff325ee278509f8da500f2 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Thu, 15 Feb 2024 01:16:37 +0530 Subject: [PATCH] test --- .github/workflows/adb-check.yml | 24 ++++++++++++++++++++++++ .github/workflows/e2e.yml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/adb-check.yml diff --git a/.github/workflows/adb-check.yml b/.github/workflows/adb-check.yml new file mode 100644 index 0000000000..d74b379466 --- /dev/null +++ b/.github/workflows/adb-check.yml @@ -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: gradlew connectedCheck diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5db8a9d7c8..b0b97c5577 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,6 +1,6 @@ name: E2E -on: [pull_request] +on: release jobs: build-e2e-android: