Skip to content

Commit

Permalink
removes sudo from emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
xavjones8 committed Sep 13, 2024
1 parent 2acf293 commit 34e6af8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/android-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
build-tools: '34.0.0'
target: 'android-34'

# Step 4: Install Android Emulator system image for API 34
# Step 4: Install Android Emulator system image for API 33
- name: Install Android System Image
run: sdkmanager "system-images;android-34;google_apis;x86_64"
env:
Expand All @@ -55,10 +55,10 @@ jobs:
run: ./gradlew build
working-directory: GPAi

# Step 8: Start Android Emulator
# Step 8: Start Android Emulator (no sudo needed)
- name: Start Emulator
run: |
sudo $ANDROID_SDK_ROOT/emulator/emulator -avd test -no-skin -no-audio -no-window &
$ANDROID_SDK_ROOT/emulator/emulator -avd test -no-skin -no-audio -no-window &
adb wait-for-device
adb shell input keyevent 82
env:
Expand All @@ -81,4 +81,3 @@ jobs:
with:
name: test-results
path: GPAi/app/build/reports/tests/

0 comments on commit 34e6af8

Please sign in to comment.