[FEAT] 리뷰어 대시보드 화면에서 참여자 프로필 이동 기능 (#185) #210
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: LGTM PR Builder & App Distribution | |
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 | |
with : | |
persist-credentials: false | |
fetch-depth: 0 | |
- 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 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Change gradlew permissions | |
run: chmod +x ./gradlew | |
- name: Touch lgtm properties | |
run: touch lgtm.properties | |
- name: Access LGTM_BASE_URL_DEBUG | |
env: | |
LGTM_BASE_URL_DEBUG: ${{ secrets.LGTM_BASE_URL_DEBUG }} | |
run: echo "LGTM_BASE_URL_DEBUG=\"$LGTM_BASE_URL_DEBUG\"" >> lgtm.properties | |
- name: Access LGTM_BASE_URL_RELEASE | |
env: | |
LGTM_BASE_URL_RELEASE: ${{ secrets.LGTM_BASE_URL_RELEASE }} | |
run: echo "LGTM_BASE_URL_RELEASE=\"$LGTM_BASE_URL_RELEASE\"" >> lgtm.properties | |
- name: Build debug APK | |
run: ./gradlew assembleDebug --stacktrace | |
- name: Upload apk to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.FIREBASE_APP_ID }} | |
token: ${{ secrets.FIREBASE_TOKEN }} | |
groups: hello-kitty-coding-club | |
file: app/build/outputs/apk/dev/debug/app-dev-debug.apk | |
releaseNotes: | | |
${{ github.event.pull_request.title }} | |
${{ github.event.pull_request.html_url }} | |
${{ github.event.pull_request.body }} | |
- name: On Success!! Congratulations | |
if: ${{ success() }} | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: '#53A551' | |
SLACK_ICON: https://github.com/hellokitty-coding-club/LGTM-Android/assets/59546818/603efae5-02ba-4065-ba7b-ea36bc88acb6 | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_TITLE: '[LGTM] PR Check SUCCESS ✅' | |
MSG_MINIMAL: true | |
SLACK_USERNAME: LGTM-Android | |
SLACK_MESSAGE: 'Build and App distribution Success🎉🎉🎉' | |
- name: On Failed, Notify in Slack | |
if: ${{ failure() }} | |
uses: rtCamp/action-slack-notify@v2 | |
with: | |
status: ${{ job.status }} | |
env: | |
SLACK_COLOR: '#ff0000' | |
SLACK_ICON: https://github.com/hellokitty-coding-club/LGTM-Android/assets/59546818/603efae5-02ba-4065-ba7b-ea36bc88acb6 | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_TITLE: '[LGTM] Android Build Fail❌' | |
MSG_MINIMAL: ref,actions url,event,commit | |
SLACK_USERNAME: LGTM-Android | |
SLACK_MESSAGE: '에러를 확인해주세요' |