[#288] 홈화면 내 픽 올리기 최대 4장 명시 #401
Workflow file for this run
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 |