-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.23 KB
/
GOMS_CI.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
name: GOMS CI
on:
pull_request:
branches: [ "*" ]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
with:
xcode-version: 16.0
- name: Build
run: swift build
# - name: Run tests
# run: swift test
- name: Success Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
title: CI 성공!
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
image: ${{ secrets.CI_SUCCESS_IMAGE }}
description: CI를 성공했습니다.
color: 00FF00
username: CI Bot
url: https://github.com/team-haribo/GOMS-iOS-V2
- name: Failed Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
title: CI 실패!
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
image: ${{ secrets.CI_FAIL_IMAGE }}
description: CI를 실패했습니다.
color: FF0000
username: CI Bot
url: https://github.com/team-haribo/GOMS-iOS-V2