Skip to content

Commit 6f411f3

Browse files
authored
add yaml file for running instrumentation tests (#1448)
* add yaml file for running instrumentation tests * test instrumentation on CI
1 parent b8b5382 commit 6f411f3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Instrumentation tests
2+
on: [pull_request, workflow_dispatch]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
api-level: [ 23, 31, 35 ]
9+
target: [ default, google_apis ]
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Enable KVM
15+
run: |
16+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
17+
sudo udevadm control --reload-rules
18+
sudo udevadm trigger --name-match=kvm
19+
20+
- name: run tests
21+
uses: reactivecircus/android-emulator-runner@v2
22+
with:
23+
api-level: ${{ matrix.api-level }}
24+
target: ${{ matrix.target }}
25+
arch: x86_64
26+
profile: pixel_7_pro
27+
script: ./gradlew :BraintreeCore:connectedCheck :Card:connectedCheck

0 commit comments

Comments
 (0)