-
-
Notifications
You must be signed in to change notification settings - Fork 693
51 lines (43 loc) · 1.17 KB
/
android.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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Android CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
android-test:
runs-on: macos-latest
if: ${{ false }} # skip job as it currently does not support Android API 31
steps:
- name: checkout
uses: actions/checkout@v2
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 33
script: ./gradlew connectedCheck
unit-test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Unit Test
run: ./gradlew testDebugUnitTest
- name: Android Test Report
uses: asadmansr/[email protected]
if: ${{ always() }} # IMPORTANT: run Android Test Report regardless of result
- name: Build with Gradle
run: ./gradlew clean build
build-demo-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: cd examples/app && ./gradlew clean assembleDebug