From 6f888d80ce03eccc558a7d4b18c422f6d3518871 Mon Sep 17 00:00:00 2001 From: Sara Vasquez Date: Tue, 28 Jul 2026 16:31:06 -0700 Subject: [PATCH] feat: add android 17 instrumentation test support --- .github/workflows/instrumentation_tests.yml | 19 +++++++++++++++++-- demo/build.gradle | 4 ++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/instrumentation_tests.yml b/.github/workflows/instrumentation_tests.yml index 1c5d2d9a..fe918ec3 100644 --- a/.github/workflows/instrumentation_tests.yml +++ b/.github/workflows/instrumentation_tests.yml @@ -3,11 +3,22 @@ on: [pull_request, workflow_dispatch] jobs: test: runs-on: ubuntu-latest + env: + EMULATOR_OPTIONS: -no-window -gpu swiftshader_indirect -dns-server 8.8.8.8 -noaudio -no-boot-anim -camera-back none -memory 4096 -feature GLDirectMem,HasSharedSlotsHostMemoryAllocator strategy: fail-fast: false matrix: - api-level: [ 31, 35 ] - target: [ default, google_apis ] + include: + - api-level: 31 + target: default + - api-level: 31 + target: google_apis + - api-level: 35 + target: default + - api-level: 35 + target: google_apis + - api-level: "37.0" + target: google_apis_ps16k steps: - name: checkout uses: actions/checkout@v4 @@ -27,6 +38,8 @@ jobs: target: ${{ matrix.target }} arch: x86_64 profile: pixel_7_pro + emulator-options: ${{ env.EMULATOR_OPTIONS }} + disk-size: 8G script: | adb shell 'echo "_ --disable-fre --no-default-browser-check --no-first-run" > /data/local/tmp/chrome-command-line' adb shell chmod 777 /data/local/tmp/chrome-command-line @@ -40,6 +53,8 @@ jobs: target: ${{ matrix.target }} arch: x86_64 profile: pixel_7_pro + emulator-options: ${{ env.EMULATOR_OPTIONS }} + disk-size: 8G script: | adb shell 'echo "_ --disable-fre --no-default-browser-check --no-first-run" > /data/local/tmp/chrome-command-line' adb shell chmod 777 /data/local/tmp/chrome-command-line diff --git a/demo/build.gradle b/demo/build.gradle index 8dc7f436..17908a7b 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -61,7 +61,7 @@ dependencies { implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1" implementation 'androidx.lifecycle:lifecycle-runtime-compose:2.10.0' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' - androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' + androidTestImplementation 'androidx.test.ext:junit:1.3.0' + androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.4.0' androidTestImplementation 'com.lukekorth:device-automator:1.0.0' }