Skip to content

Github action link to jira #4

Github action link to jira

Github action link to jira #4

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Lighthouse 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 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Change gradlew permissions
run: chmod +x ./gradlew
- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: On Success!! Congratulations
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#53A551'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '[Lighthouse] PR Check SUCCESS ✅'
MSG_MINIMAL: true
SLACK_USERNAME: Lighthouse
SLACK_MESSAGE: 'PR이 완료되었습니다!!! 🎉🎉🎉'
- name: On Failed, Notify in Slack
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
with:
status: ${{ job.status }}
env:
SLACK_COLOR: '#ff0000'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '[Lighthouse] Android Build Fail❌'
MSG_MINIMAL: ref,actions url,event,commit
SLACK_USERNAME: Lighthouse
SLACK_MESSAGE: '에러를 확인해주세요'