[FEAT] 애드몹 배너를 삽입합니다. #194
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: Orbit CI | |
on: | |
pull_request: | |
branches: [develop] | |
paths: | |
- 'app/**' | |
- 'build.gradle' | |
- '**/*.kt' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Gradle Cache | |
- name: Cache Gradle packages | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties', '**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
# Checkout Code | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
# Setup JDK | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
# Setup Android SDK | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
# Grant Execute Permission | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# Decode google-services.json | |
- name: Decode google-services.json | |
env: | |
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }} | |
run: echo $FIREBASE_SECRET | base64 --decode > app/google-services.json | |
# Debug google-services.json | |
- name: Debug google-services.json | |
run: cat app/google-services.json | |
# Add Local Properties | |
- name: Add Local Properties | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }} | |
run: | | |
echo -e "baseUrl=$BASE_URL\namplitudeApiKey=$AMPLITUDE_API_KEY" >> local.properties | |
# Debug Local Properties Check | |
- name: Debug Local Properties | |
run: cat local.properties | |
# Run Lint and Build | |
- name: Run lint and build | |
run: ./gradlew ktlintCheck assembleDebug |