-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (32 loc) · 906 Bytes
/
pull_request.yml
File metadata and controls
44 lines (32 loc) · 906 Bytes
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
name: Build & Run tests
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Grant execute permissions for gradlew
run: chmod +x gradlew
- name: Run KtLint Check
run: ./gradlew ktlintCheck
- name: Run unit tests
run: ./gradlew clean testDebug
- name: Build Project
run: ./gradlew :app:buildDebug
- name: Generate Debug APK
run: ./gradlew :app:assembleDebug --stacktrace
- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk