Skip to content

Commit

Permalink
📝 :: [#270] Edit CI Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xixn2 committed Nov 18, 2024
1 parent 95508fb commit 9a1f95f
Showing 1 changed file with 45 additions and 41 deletions.
86 changes: 45 additions & 41 deletions .github/workflows/GOMS_CI.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
name: Expo CI
name: GOMS CI

on:
pull_request:
branches: [ "*" ]

jobs:
CI:
runs-on: ubuntu-latest
build:
runs-on: macos-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
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.3.app

- name: Install Dependencies
run: |
pod install --repo-update
- name: Build
run: |
xcodebuild clean build -workspace GOMS-iOS-V2.xcworkspace -scheme "GOMS-iOS-V2" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO
# - name: Run tests
# run: |
# xcodebuild test -workspace GOMS-iOS-V2.xcworkspace -scheme "GOMS-iOS-V2" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO

- 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

0 comments on commit 9a1f95f

Please sign in to comment.