#146 / splash screen 버전 대응 #165
Workflow file for this run
This file contains 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: Uni PR Builder | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Create Local Properties | |
run: touch local.properties | |
- name: Access Local Properties | |
env: | |
BASE_URL: ${{ secrets.BASE_URL }} | |
KAKAO_APP_KEY: ${{ secrets.KAKAO_APP_KEY }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
run: | | |
echo BASE_URL=\"$BASE_URL\" >> local.properties | |
echo KAKAO_APP_KEY=$KAKAO_APP_KEY >> local.properties | |
echo GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID >> local.properties | |
- name: Access Firebase Service | |
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Lint Check | |
run: ./gradlew ktlintCheck | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: On Success!! Congratulations | |
if: ${{ success() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: '#4AC3BE' | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_TITLE: 'Uni/PR Check S.U.C.C.E.S.S 🎉🎉🎉' | |
MSG_MINIMAL: true | |
SLACK_USERNAME: Uni-AOS | |
SLACK_MESSAGE: 'PR이 완료되었습니다!!! 🎉🎉🎉' | |
- name: On Failed, Notify in Slack | |
if: ${{ failure() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: '#ff0000' | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_TITLE: 'Uni/Android Debug build Fail❌' | |
MSG_MINIMAL: true | |
SLACK_USERNAME: Uni-AOS | |
SLACK_MESSAGE: '에러를 확인하세요' |