Readme ์ ์ฑ ๋์ gif ์ด๋ฏธ์ง ์ถ๊ฐ #424
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |