Skip to content

Firebase Remote Config 연동하여 QA 용 로그인 버튼 활성화 #81

Firebase Remote Config 연동하여 QA 용 로그인 버튼 활성화

Firebase Remote Config 연동하여 QA 용 로그인 버튼 활성화 #81

Workflow file for this run

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
- 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