[Feat] Firebase , CI/CD 추가 #2
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" ] # "develop" 브랜치에 푸시될 때만 트리거된다. | |
| pull_request: # 풀 리퀘스트 이벤트에 대한 설정 | |
| branches: [ "develop" ] # "develop" 브랜치로의 풀 리퀘스트가 생성될 때만 트리거된다. | |
| jobs: # CI에서 수행할 작업을 정의한다. | |
| ci-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Generate local.properties | |
| run: | | |
| echo '${{ secrets.LOCAL_PROPERTIES }}' >> ./local.properties | |
| - name: Generate google-services.json | |
| run: | | |
| echo '${{ secrets.GOOGLE_SERVICES }}' >> ./app/google-services.json | |
| # - name: Code style checks | |
| # run: | | |
| # ./gradlew detekt | |
| - name: Run build | |
| run: ./gradlew assembleDebug --stacktrace | |