-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
41 deletions.
There are no files selected for viewing
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
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 |