모아 서비스 네임 변경으로 인한 패키지명 수정 #90
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: | |
- uses: actions/checkout@v3 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Gradle cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: 17 | |
- name: Access KAKAO_APP_KEY | |
run: echo KAKAO_APP_KEY=\"$API_KEY\" >> local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.KAKAO_APP_KEY }} | |
- name: Access KAKAO_REST_API_KEY | |
run: echo KAKAO_REST_API_KEY=\"$API_KEY\" >> local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.KAKAO_REST_API_KEY }} | |
- name: Access AMPLITUDE_API_KEY | |
run: echo AMPLITUDE_API_KEY=\"$API_KEY\" >> local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.AMPLITUDE_API_KEY }} | |
- name: Create App Google Services | |
env: | |
APP_GOOGLE_SERVICES_JSON: ${{ secrets.APP_GOOGLE_SERVICES_JSON }} | |
run: echo "$APP_GOOGLE_SERVICES_JSON" > app/google-services.json | |
- name: Create StartUp Google Services | |
env: | |
STARTUP_GOOGLE_SERVICES_JSON: ${{ secrets.STARTUP_GOOGLE_SERVICES_JSON }} | |
run: echo "$STARTUP_GOOGLE_SERVICES_JSON" > feature/startup/google-services.json | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Grant execute permission for 제gradlew | |
run: chmod +x gradlew | |
- name: Run ktlint | |
run: ./gradlew ktlintCheck |