-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 899 Bytes
/
build.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
name: Build
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGES.md'
- 'LICENSE'
- 'THANKS'
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- name: Copy gradle.properties
run: cp gradle.properties.example gradle.properties
- name: Build with Gradle
run: ./gradlew build
- name: Lint Check
run: ./gradlew ktlintCheck
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: sora-android-sdk
SLACK_COLOR: danger
SLACK_TITLE: Build failed
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}