[Feat] 일정화면 Compose 마이그레이션 #18
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: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| Run-PR-Test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| checks: write | |
| steps: | |
| - name: Repository Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Gradle cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| ~/.android/build-cache | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle.kts', '**/settings.gradle.kts', '**/gradle-wrapper.properties', 'gradle/libs.versions.toml', '**/gradle.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Create local.properties with BASE_URL | |
| run: | | |
| echo BASE_URL=\"${{ secrets.BASE_URL }}\" > local.properties | |
| echo BASE_URL_DEV=\"${{ secrets.BASE_URL_DEV }}\" >> local.properties | |
| echo NAVER_MAP_CLIENT_ID=\"${{ secrets.NAVER_MAP_CLIENT_ID }}\" >> local.properties | |
| echo NAVER_MAP_STYLE_ID=\"${{ secrets.NAVER_MAP_STYLE_ID }}\" >> local.properties | |
| - name: Load Google Service file | |
| env: | |
| DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
| run: echo "$DATA" > app/google-services.json | |
| - name: Restore keystore file | |
| run: | | |
| echo "$KEYSTORE_BASE64" | base64 --decode > app/festabook_appkey.jks | |
| echo "JKS_FILE_PATH=./app/festabook_appkey.jks" >> local.properties | |
| echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> local.properties | |
| echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> local.properties | |
| echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> local.properties | |
| env: | |
| KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
| - name: Run ktlint | |
| run: ./gradlew ktlintCheck | |
| - name: Run Debug Unit Test (for Develop PRs) | |
| if: github.base_ref == 'develop' | |
| run: ./gradlew testDebugUnitTest | |
| - name: Run Release Unit Test (for Main PRs) | |
| if: github.base_ref == 'main' | |
| run: ./gradlew testReleaseUnitTest | |
| - name: Publish Unit Test Results | |
| if: always() | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| files: app/build/test-results/**/TEST-*.xml | |
| check_name: '테스트 결과 🛠️' | |
| check_run_annotations: 'none' | |
| comment_mode: 'off' |