[feat] 건빵집 리스트 페이징 구현 및 리팩토링 #391
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: GP PR Builder | |
on: | |
pull_request: | |
branches: [ develop, main ] | |
defaults: | |
run: | |
shell: bash | |
working-directory: . | |
jobs: | |
build: | |
name: PR Checker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Gradle cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Change gradlew permissions | |
run: chmod +x ./gradlew | |
- name: Decode google-services.json | |
env: | |
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }} | |
run: echo $FIREBASE_SECRET > app/google-services.json | |
- name: Access GP_BASE_URL | |
env: | |
HFM_BASE_URL: ${{ secrets.GP_BASE_URL }} | |
run: echo "GP_BASE_URL=\"$GP_BASE_URL\"" >> local.properties | |
- name: Access ACCESS_TOKEN | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
run: echo "ACCESS_TOKEN=\"$ACCESS_TOKEN\"" >> local.properties | |
- name: Access KAKAO_NATIVE_APP_KEY | |
env: | |
ACCESS_TOKEN: ${{ secrets.KAKAO_NATIVE_APP_KEY }} | |
run: echo "KAKAO_NATIVE_APP_KEY=\"$KAKAO_NATIVE_APP_KEY\"" >> local.properties | |
- name: Access KAKAO_APP_KEY | |
env: | |
ACCESS_TOKEN: ${{ secrets.KAKAO_APP_KEY }} | |
run: echo "KAKAO_APP_KEY=\"$KAKAO_APP_KEY\"" >> local.properties | |
- name: Access AMPLITUDE_API_DEV_KEY | |
env: | |
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_DEV_KEY }} | |
run: echo "AMPLITUDE_API_DEV_KEY=\"AMPLITUDE_API_DEV_KEY\"" >> local.properties | |
- name: Access AMPLITUDE_API_PROD_KEY | |
env: | |
AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_PROD_KEY }} | |
run: echo "AMPLITUDE_API_PROD_KEY=\"AMPLITUDE_API_PROD_KEY\"" >> local.properties | |
- name: Touch local properties | |
run: touch local.properties | |
- 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: '#F0683E' | |
SLACK_ICON: https://github.com/GEON-PPANG/GEON-PPANG-AOS/assets/77060011/55372c86-acf3-4847-9457-c83b87e571c4 | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_TITLE: '🥐 GEON-PPANG/AOS PR Check S.U.C.C.E.S.S 🥐' | |
MSG_MINIMAL: true | |
SLACK_USERNAME: GEONPPANG-AOS | |
SLACK_MESSAGE: 'PR이 완료되었습니다! 🥳🥳🥳' | |
- name: On Failed, Notify in Slack | |
if: ${{ failure() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: '#238448' | |
SLACK_ICON: https://github.com/GEON-PPANG/GEON-PPANG-AOS/assets/77060011/55372c86-acf3-4847-9457-c83b87e571c4 | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_TITLE: 'GEON-PPANG/AOS Debug build Fail❌' | |
MSG_MINIMAL: true | |
SLACK_USERNAME: GEONPPANG-AOS | |
SLACK_MESSAGE: '에러를 확인해주세요😢' |