Skip to content

fix: 약속 참여할 때 가끔 바로 로그화면으로 가지지 않는 버그 수정 #545

fix: 약속 참여할 때 가끔 바로 로그화면으로 가지지 않는 버그 수정

fix: 약속 참여할 때 가끔 바로 로그화면으로 가지지 않는 버그 수정 #545

name: android ci
on:
pull_request:
branches:
- develop
paths:
- android/**
defaults:
run:
working-directory: android
jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Change gradlew permissions
run: chmod +x ./gradlew
- name: Add google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
- name: Add local.properties
run: |
echo base_dev_url='${{ secrets.BASE_DEV_URL }}' > ./local.properties
echo base_prod_url='${{ secrets.BASE_PROD_URL }}' > ./local.properties
echo kakao_api_key='{{ secrets.KAKAO_API_KEY }}' > ./local.properties
echo kakao_native_key='{{ secrets.KAKAO_NATIVE_KEY }}' > ./local.properties
echo term_uri='{{ secrets.TERM_URI }}' > ./local.properties
echo privacy_policy_uri='{{ secrets.PRIVACY_POLICY_URI }}' > ./local.properties
- name: Check ktLint
run: ./gradlew ktlintCheck
- name: Clean Bulid
run: ./gradlew clean
- name: Build with Gradle
run: ./gradlew build
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: JUnit Report Action
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: ${{ github.workspace }}/android/gradle/test-results/*.xml