-
Notifications
You must be signed in to change notification settings - Fork 59
75 lines (64 loc) · 2.15 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
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Master Flow
on:
push:
branches:
- master
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
verify-lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ktlint
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.43.2/ktlint && chmod a+x ktlint && ./ktlint
verify-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Decrypt secrets
run: ./.github/scripts/decrypt_secrets.sh
env:
KEYSTORE_PASSPHRASE: ${{ secrets.KEYSTORE_PASSPHRASE }}
- name: Run Unit Tests (app)
run: ./gradlew :app:testDebugUnitTest
- name: Run Unit Tests (ui-repository)
run: ./gradlew :repository:testDebugUnitTest
- name: Run Unit Tests (ui-discover)
run: ./gradlew :ui-discover:testDebugUnitTest
- name: Run Unit Tests (ui-trakt-sync)
run: ./gradlew :ui-trakt-sync:testDebugUnitTest
- name: Run Unit Tests (ui-statistics)
run: ./gradlew :ui-statistics:testDebugUnitTest
- name: Run Unit Tests (ui-statistics-movies)
run: ./gradlew :ui-statistics-movies:testDebugUnitTest
- name: Run Unit Tests (ui-search)
run: ./gradlew :ui-search:testDebugUnitTest
- name: Run Unit Tests (ui-progress-movies)
run: ./gradlew :ui-progress-movies:testDebugUnitTest
distribute:
needs: [ verify-lint, verify-tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Decrypt secrets
run: ./.github/scripts/decrypt_secrets.sh
env:
KEYSTORE_PASSPHRASE: ${{ secrets.KEYSTORE_PASSPHRASE }}
- name: Build APK
run: ./gradlew app:assembleRelease
- name: Distribute APK
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: owner
file: app/build/outputs/apk/release/app-release.apk
releaseNotes: ""