-
Notifications
You must be signed in to change notification settings - Fork 53
56 lines (45 loc) · 1.21 KB
/
android.yml
File metadata and controls
56 lines (45 loc) · 1.21 KB
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
47
48
49
50
51
52
53
54
55
56
name: Android CI
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build_debug_apk:
name: Build Debug APK
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Set Up JDK 22
uses: actions/setup-java@v5
with:
java-version: '22'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Run Code Linting
run: ./gradlew lint
- name: Run Unit Tests
run: ./gradlew test
- name: Build APK (Debug)
run: ./gradlew assembleDebug
- name: Upload Lint & Test Reports
uses: actions/upload-artifact@v7
if: always()
with:
name: reports
path: |
app/build/reports/lint-results*.html
app/build/reports/tests/
retention-days: 7
- name: Upload Debug APK
uses: actions/upload-artifact@v7
with:
name: app-debug
path: app/build/outputs/apk/debug/
if-no-files-found: error
retention-days: 14