[PC-1644] fcm 알림 채널 변경 및 중요도 변경 #778
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: Android CI | |
| on: | |
| push: | |
| branches: [ "develop" ] | |
| pull_request: | |
| branches: [ "develop" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Gradle cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Set up local.properties | |
| run: | | |
| echo "KAKAO_APP_KEY=${{ secrets.KAKAO_APP_KEY }}" >> local.properties | |
| echo "AMPLITUDE_API_KEY=${{ secrets.AMPLITUDE_API_KEY }}" >> local.properties | |
| echo "PIECE_DEV_BASE_URL=${{ secrets.PIECE_DEV_BASE_URL }}" >> local.properties | |
| echo "PIECE_PROD_BASE_URL=${{ secrets.PIECE_PROD_BASE_URL }}" >> local.properties | |
| echo "PIECE_NOTICE_URL=${{ secrets.PIECE_NOTICE_URL }}" >> local.properties | |
| echo "PIECE_PRIVACY_AND_POLICY_URL=${{ secrets.PIECE_PRIVACY_AND_POLICY_URL }}" >> local.properties | |
| echo "PIECE_TERMS_OF_USE_URL=${{ secrets.PIECE_TERMS_OF_USE_URL }}" >> local.properties | |
| echo "PIECE_CHANNEL_TALK_URL=${{ secrets.PIECE_CHANNEL_TALK_URL }}" >> local.properties | |
| echo "PIECE_MARKET_URL=${{ secrets.PIECE_MARKET_URL }}" >> local.properties | |
| echo "GOOGLE_WEB_CLIENT_ID=${{ secrets.GOOGLE_WEB_CLIENT_ID }}" >> local.properties | |
| - name: Decode keystore file | |
| run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > ./app/upload-keystore.jks | |
| - name: Set up keystore.properties | |
| run: | | |
| echo "STORE_FILE_PATH=./upload-keystore.jks" >> keystore.properties | |
| echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> keystore.properties | |
| echo "KEY_ALIAS_RELEASE=${{ secrets.KEY_ALIAS_RELEASE }}" >> keystore.properties | |
| echo "KEY_PASSWORD_RELEASE=${{ secrets.KEY_PASSWORD_RELEASE }}" >> keystore.properties | |
| echo "KEY_ALIAS_DEBUG=${{ secrets.KEY_ALIAS_DEBUG }}" >> keystore.properties | |
| echo "KEY_PASSWORD_DEBUG=${{ secrets.KEY_PASSWORD_DEBUG }}" >> keystore.properties | |
| - name: Create google-services.json | |
| run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json | |
| - name: Build with Gradle | |
| run: ./gradlew assembleDebug --build-cache --stacktrace | |
| - name: KtlintCheck | |
| run: ./gradlew ktlintcheck | |
| - name: Test | |
| run: ./gradlew test --stacktrace |