-
Notifications
You must be signed in to change notification settings - Fork 4
82 lines (68 loc) · 1.94 KB
/
android.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Android Debug Build
on:
push:
branches:
- dev
pull_request:
jobs:
detekt:
name: Detekt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Detekt
uses: natiginfo/[email protected]
with:
args: --config detekt.yaml --language-version 1.7.20 --input modules
test:
name: Unit Tests
runs-on: ubuntu-latest
needs: detekt
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Materialize google services
run: .ci/materialize.sh $GOOGLE_SERVICES_DEBUG modules/app/google-services.json
env:
GOOGLE_SERVICES_DEBUG: ${{ secrets.GOOGLE_SERVICES_DEBUG }}
- name: Unit tests
run: |
./gradlew -Pci testDebugUnitTest
env:
MAP_KEY: ${{ secrets.MAP_KEY }}
build:
name: Debug Build
runs-on: ubuntu-latest
needs: detekt
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Materialize google services
run: .ci/materialize.sh $GOOGLE_SERVICES_DEBUG modules/app/google-services.json
env:
GOOGLE_SERVICES_DEBUG: ${{ secrets.GOOGLE_SERVICES_DEBUG }}
- name: Build with Gradle
run: ./gradlew -Pci :app:assembleDebug
env:
MAP_KEY: ${{ secrets.MAP_KEY }}
- name: Upload Debug APK
uses: actions/upload-artifact@v1
with:
name: App Debug
path: modules/app/build/outputs/apk/debug/app-debug.apk