-
-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (39 loc) · 1.23 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
name: Test & Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 1.19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: zulu
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create empty keystore
run: echo "storeFile=/" > keystore.properties
- name: Unit Tests
run: ./gradlew testFullDebugUnitTest
- name: Build with Gradle
run: ./gradlew app:licenseFullDebug app:assembleFullDebug app:licensePlayStoreDebug app:assemblePlayStoreDebug wearOS:licenseDebug wearOS:assembleDebug
- uses: actions/upload-artifact@v3
with:
name: app-full-debug.apk
path: ./app/build/outputs/apk/full/debug/app-full-debug.apk
- uses: actions/upload-artifact@v3
with:
name: app-playStore-debug.apk
path: ./app/build/outputs/apk/playStore/debug/app-playStore-debug.apk
- uses: actions/upload-artifact@v3
with:
name: wearOS-debug.apk
path: ./wearOS/build/outputs/apk/debug/wearOS-debug.apk
- name: KTLint
if: always()
run: ./gradlew ktlintCheck