-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) ยท 1.47 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
name: Android CI
on:
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# ๋ ํฌ์งํ ๋ฆฌ์ ์ ๊ทผํ ์ ์๋๋ก checkout
- uses: actions/checkout@v4
# ๋น๋๋ฅผ ์ํ ๊ธฐ๋ณธ ์ธํ
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
# gradle ๋น๋ ์บ์ฑ
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
# gradle ๊ถํ ๋ถ์ฌ
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# ci ๋น๋๋ฅผ ์ํ secrets ์ธํ
- name: Access github actions secrets
env:
KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
run: |
echo kakao_native_app_key="$KAKAO_NATIVE_APP_KEY" > ./local.properties
# firebase์ํ google-services.json ํ์ผ ์์ฑ
- name: Create google-services.json
env:
GOOGLE_SERVICE_JSON: ${{ secrets.GOOGLE_SERVICE_JSON }}
run: echo "$GOOGLE_SERVICE_JSON" > app/google-services.json
# ktlint
- name: Check ktlint
run: ./gradlew ktlintCheck
# ์ต์ข
๋น๋
- name: Build with Gradle
run: ./gradlew build