-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (50 loc) · 1.64 KB
/
test-release.yml
File metadata and controls
63 lines (50 loc) · 1.64 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
57
58
59
60
61
62
63
name: Test Release
on:
push:
branches:
- develop
jobs:
test:
name: Run unit tests & static analysis checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run unit tests
run: ./gradlew testDevDebug
- name: Run static analysis checks
run: ./gradlew detekt ktlint lintDevDebug spotlessCheck --daemon
buildAndDeployAPK:
name: Build signed APK and deploy to AppCenter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Add keystore properties
env:
KEYSTORE_PROPERTIES_BASE64: ${{ secrets.KEYSTORE_PROPERTIES_BASE64 }}
run: base64 -d <<< $KEYSTORE_PROPERTIES_BASE64 > keystore.properties
- name: Add keystore file
env:
MOVEE_KEYSTORE_BASE64: ${{ secrets.MOVEE_KEYSTORE_BASE64 }}
run: base64 -d <<< $MOVEE_KEYSTORE_BASE64 > movee.keystore
- name: Build APK
run: |
bash ./gradlew assembleDevRelease
mv $(ls app/build/outputs/apk/dev/release/*.apk) app-release.apk
# TODO update above when AppCenter-Github-Action supports ant style glob pattern
- name: Upload APK to AppCenter
uses: wzieba/AppCenter-Github-Action@v1.0.0
with:
appName: adesso-Turkey/Movee-Test
token: ${{secrets.APP_CENTER_TOKEN}}
group: adesso
file: app-release.apk
# TODO deploy to PlayStore:
# TODO notifyTeams: