-
Notifications
You must be signed in to change notification settings - Fork 46
38 lines (38 loc) · 981 Bytes
/
emulator.yml
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
# emulator runs tests inside the android emulator
name: emulator
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "0 2 * * */2"
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
api-level: [29]
target: [google_apis]
steps:
- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: checkout
uses: actions/checkout@v2
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
ram-size: 2048M
script: ./gradlew connectedStableFullDebugAndroidTest
- name: uploads test results
uses: actions/upload-artifact@v2
if: failure()
with:
name: emulator-test-results
path: app/build/reports/androidTests/connected/flavors/stableFullDebugAndroidTest