지도 > 바텀시트, 지도 화면, 위치 권한 구현 #45
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: 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 | |
- name: Run Unit tests | |
run: ./gradlew testDebugUnitTest | |
- name: Android Test Report Action | |
uses: asadmansr/[email protected] | |
if: ${{ always() }} | |
- name: Build assemble Debug APK | |
run: ./gradlew assembleDebug |