Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/instrumentation_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +12 to +21

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is nice, do you think we can apply this same style to our other integration tests so we can deduplicate the sections we added for Android 17 in https://github.com/braintree/braintree_android/ ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we probably can. I'll make a ticket to investigate that

steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Loading