-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.09 KB
/
android-build-mcc.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
name: Build MCC Android
on: [push]
jobs:
unit_tests:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Unit tests
run: ./gradlew test
android_tests:
runs-on: [ macos-latest ]
steps:
- uses: actions/checkout@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedAndroidTest
build:
# needs: [ unit_tests, android_tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
# - uses: actions/checkout@v2
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build
- name: Generate Release APK
run: ./gradlew assembleRelease