forked from meshtastic/Meshtastic-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.33 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Android CI
on:
push:
branches: [ master ]
paths-ignore:
- "**.md"
pull_request:
branches: [ master ]
jobs:
ci-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Mock files for CI
run: |
rm ./app/google-services.json
cp ./app/google-services-example.json ./app/google-services.json
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Check lint
run: ./gradlew lintFdroidDebug lintGoogleDebug
- name: Build debug artifacts
run: ./gradlew assembleDebug
- name: Run local tests
run: ./gradlew testFdroidDebug testGoogleDebug
- name: Upload debug artifact
uses: actions/upload-artifact@v4
with:
name: fdroidDebug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
retention-days: 30
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-reports
path: app/build/reports
retention-days: 30