From 395437aebad1f706e469d030a753abbf1b9590eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=8E=98=ED=86=A0?= <84930748+chanho0908@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:49:51 +0900 Subject: [PATCH 1/2] Create android-ci.yml --- .github/workflows/android-ci.yml | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/android-ci.yml diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml new file mode 100644 index 0000000..3a53e93 --- /dev/null +++ b/.github/workflows/android-ci.yml @@ -0,0 +1,60 @@ +name: Android CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + + permissions: + contents: read + pull-requests: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission to gradlew + run: chmod +x gradlew + + - name: Create google-services.json + env: + GOOGLE_SERVICES_JSON_DEBUG: ${{ secrets.GOOGLE_SERVICES_JSON_DEBUG }} + run: | + mkdir -p ./app/src/debug + echo "${GOOGLE_SERVICES_JSON_DEBUG}" > ./app/src/debug/google-services.json + + - name: Clean Project + run: ./gradlew clean + + - name: Run ktlint Check + run: ./gradlew ktlintCheck --build-cache --parallel + + - name: Run Unit Tests + run: ./gradlew test --build-cache --parallel + + - name: Assemble Debug + run: ./gradlew assembleDebug --build-cache --parallel From cb4d2f54ae8b64c14867ece1b2e75ddf02c5c392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=8E=98=ED=86=A0?= <84930748+chanho0908@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:01:02 +0900 Subject: [PATCH 2/2] Update android-ci.yml --- .github/workflows/android-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index 3a53e93..01f77df 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -1,13 +1,17 @@ name: Android CI on: - push: - branches: - - main pull_request: branches: + - develop + + push: + branches: + - develop - main + workflow_dispatch: + concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true