[FEAT/#749] 전면광고의 서버 API를 연결해요 #1191
Workflow file for this run
This file contains hidden or 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: Hilingual PR CI | |
| on: | |
| pull_request: | |
| branches: [ develop, main ] | |
| push: | |
| branches: [ develop ] | |
| jobs: | |
| lint: | |
| name: PR Lint Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Create local.properties from secret | |
| env: | |
| LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} | |
| run: | | |
| printf "%s" "$LOCAL_PROPERTIES" > local.properties | |
| echo "sdk.dir=$ANDROID_SDK_ROOT" >> local.properties | |
| - name: Grant permission to gradlew | |
| run: chmod +x ./gradlew | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck | |
| build: | |
| name: PR Build Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Create local.properties from secret | |
| env: | |
| LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} | |
| run: | | |
| printf "%s" "$LOCAL_PROPERTIES" > local.properties | |
| echo "sdk.dir=$ANDROID_SDK_ROOT" >> local.properties | |
| - name: Decode and install debug keystore | |
| env: | |
| DEBUG_KEYSTORE_BASE64: ${{ secrets.DEBUG_KEYSTORE_BASE64 }} | |
| run: | | |
| mkdir -p ./keystore | |
| echo "$DEBUG_KEYSTORE_BASE64" | base64 --decode > ./keystore/hilingual-debug-key.jks | |
| - name: Create google-services.json | |
| env: | |
| GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
| run: | | |
| printf "%s" "$GOOGLE_SERVICES_JSON" > ./app/google-services.json | |
| - name: Grant permission to gradlew | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew :app:assembleDebug --stacktrace |