-
-
Notifications
You must be signed in to change notification settings - Fork 582
46 lines (44 loc) · 1.2 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
name: App testing
on:
push:
branches:
- '**'
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Unit tests
run: bash ./gradlew testDebugUnitTest --stacktrace
- name: Lint code
run: bash ./gradlew lint --stacktrace
apk:
name: Generate APK
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: set up Java 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Build release APK
run: bash ./gradlew assembleRelease --stacktrace
- name: Upload debug APK
uses: actions/upload-artifact@v4
with:
name: debug
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload release APK
uses: actions/upload-artifact@v4
with:
name: release
path: app/build/outputs/apk/release/app-release-unsigned.apk