-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 856 Bytes
/
build.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
name: Build
on:
push:
branches:
- main
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Unit tests
run: bash ./gradlew test --stacktrace
build_apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build APK
run: bash ./gradlew assembleRelease --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: build_release_apk
path: app/build/outputs/apk/release/app-release.apk
retention-days: 2