-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (60 loc) · 2.26 KB
/
pr_ci_checker.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
name: uni PR CI
on:
pull_request:
branches: [ develop ]
permissions:
contents: read
issues: read
checks: write
pull-requests: write
jobs:
ci:
uses: ./.github/workflows/gradle_task.yml
with:
tasks: '["ktlintCheck", "build -x test -x ktlintCheck", "test"]'
secrets: inherit
publish-test-result:
needs:
- ci
runs-on: ubuntu-latest
steps:
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: |
module-domain/build/test-results/**/*.xml
module-infrastructure/build/test-results/**/*.xml
module-usecase/build/test-results/**/*.xml
result-success:
needs:
- ci
if: success()
runs-on: ubuntu-latest
steps:
- name: On Success!! Congratulations
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#53A551'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: 'Uni/PR Check S.U.C.C.E.S.S 🎉🎉🎉'
SLACK_ICON: ${{ github.event.org.avatar_url }}
MSG_MINIMAL: event,actions url, commit
SLACK_USERNAME: Uni-server
SLACK_MESSAGE: '${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number}}'
result-failure:
needs:
- ci
if: failure()
runs-on: ubuntu-latest
steps:
- name: On Failed, Notify in Slack
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#ff0000'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: 'Uni/Server Debug build Fail❌ 에러를 확인해주세요'
SLACK_ICON: ${{ github.event.org.avatar_url }}
MSG_MINIMAL: event,actions url, commit
SLACK_USERNAME: Uni-server
SLACK_MESSAGE: '${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number}}'