-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (41 loc) ยท 1.28 KB
/
ci-user-aos.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
name: Android CI
on:
push:
branches:
- dev
paths: ['android/festago/**']
pull_request:
branches:
- dev
paths: 'android/festago/**'
defaults:
run:
working-directory: android/festago
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: add google-services.json
run: echo '${{ secrets.ANDROID_USER_GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
- name: add local.properties
run: |
echo kakao_native_app_key=\"${{ secrets.ANDROID_USER_KAKAO_NATIVE_APP_KEY }}\" >> ./local.properties
echo kakao_redirection_scheme=\"${{ secrets.ANDROID_USER_KAKAO_REDIRECTION_SCHEME }}\" >> ./local.properties
echo base_url=\"$${{ secrets.ANDROID_USER_BASE_URL }}\" >> ./local.properties
- name: Build with Gradle
run: ./gradlew build
- name: Run ktlint
run: ./gradlew ktlintCheck
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: Build assemble release apk
run: ./gradlew assembleRelease