-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"
- Loading branch information
1 parent
4059f1f
commit 660c8bc
Showing
4 changed files
with
77 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
name: ADB Test | ||
on: push | ||
on: [push] | ||
|
||
jobs: | ||
adb-test: | ||
name: Run Detox tests on Android | ||
runs-on: ["self-hosted", "Linux", "X64"] | ||
|
||
runs-on: self-hosted | ||
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 | ||
- run: | | ||
echo no | avdmanager create avd --force -n Pixel_API_34_AOSP --abi 'aosp_atd/arm64-v8a' --package 'system-images;android-34;aosp_atd;arm64-v8a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters