Skip to content

Commit

Permalink
please work
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian04 committed Apr 7, 2024
1 parent df74ecc commit 5a7a12d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,35 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2

- uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: "gradle"

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- 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: Accept Android SDK license
run: yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses
- name: Accept Android licenses
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true

- name: Run instrumented tests
run: |
./gradlew cleanManagedDevices --unused-only && \
./gradlew devicesGroupdebugAndroidTest \
-Dorg.gradle.workers.max=1 \
-Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect \
-Pandroid.testoptions.manageddevices.emulator.no-snapshot \
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1 \
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true --info
- name: Build the app
run: ./gradlew build
Expand Down

0 comments on commit 5a7a12d

Please sign in to comment.