-
Notifications
You must be signed in to change notification settings - Fork 57
50 lines (44 loc) · 1.21 KB
/
ci.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
# This is a basic workflow to help you get started with Actions
name: CI
on: [push, pull_request]
jobs:
build:
name: Build APK
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build debug APK
run: ./gradlew assembleDebug
test:
name: Unit Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run unit tests
run: ./gradlew test
- name: Android Test Report
uses: asadmansr/[email protected]
# androidTest:
# name: Instrumented Tests
# runs-on: macOS-latest
# steps:
# - uses: actions/checkout@v1
# - name: Set up JDK 11
# uses: actions/setup-java@v1
# with:
# java-version: 11
# - name: Run Instrumented Tests
# uses: reactivecircus/android-emulator-runner@v1
# with:
# api-level: 29
# arch: x86
# disable-animations: true
# script: ./gradlew connectedAndroidTest --stacktrace