Update dependency gradle to v8.12 #398
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: 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: '밥먹지 말고 버그고쳐 ☠️' |