Skip to content

Commit

Permalink
Give up and attempt to use an action that sets up Android device checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Nov 5, 2023
1 parent 91abb6d commit a1a819c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Create an Android Virtual Device
run: $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n emulator -k "system-images;android-33;google_apis;x86_64"

- name: Launch the emulator
run: $ANDROID_HOME/emulator/emulator -avd emulator

- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android
Expand All @@ -41,6 +35,8 @@ jobs:
run: ./gradlew build
working-directory: android

- name: Run Android Tests
run: ./gradlew connectedAndroidTest
working-directory: android
- name: Run Connected Checks
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck

0 comments on commit a1a819c

Please sign in to comment.