-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.89 KB
/
EveryMeal_PR_Builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Every_Meal_PR_Builder
on:
pull_request:
branches: [ develop, master ]
defaults:
run:
shell: bash
working-directory: .
jobs:
build:
name: PR Checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Gradle cache
uses: actions/cache@v3
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@v3
with:
distribution: 'temurin'
java-version: 17
- name: Change gradlew permissions
run: chmod +x ./gradlew
- name: Add Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
run: |
echo baseUrl=BASE_URL >> ./local.properties
- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace
- name: On Success
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#ff0000'
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTI }}
SLACK_TITLE: 'ALL EveryMeal Android Makers checks have passed ✅'
MSG_MINIMAL: true
SLACK_USERNAME: EveryMeal Android
SLACK_MESSAGE: 'EveryMeal Android PR check Success 밥먹자 🍚'
- name: On Failed, Notify in Slack
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#ff0000'
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTI }}
SLACK_TITLE: 'EveryMeal checks have failed ⚠️🚫'
MSG_MINIMAL: true
SLACK_USERNAME: EveryMeal Android
SLACK_MESSAGE: '밥먹지 말고 버그고쳐 ☠️'