-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathandroid-instrumented-data-tests.yml
More file actions
46 lines (38 loc) · 1.4 KB
/
android-instrumented-data-tests.yml
File metadata and controls
46 lines (38 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Android Instrumented Data Tests
permissions:
contents: read
on:
pull_request:
# Cancels other executions in the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
instrumented-tests:
name: Run Android Instrumented Data Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: Set up JDK 17
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0
with:
java-version: '17'
distribution: 'temurin'
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run Instrumented Data Tests with emulator
uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a #v2.37.0
with:
api-level: 33
target: google_apis
arch: x86_64
profile: pixel
avd-name: instrumented-tests-avd
force-avd-creation: true
disable-animations: true
emulator-options: -no-window -no-audio -no-boot-anim -accel auto -memory 2048
script: ./gradlew :ownCloudData:connectedAndroidTest