-
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.
Merge pull request #4 from ondosee/feature/ci-build
[Feature] :: CI 스크립트 구축
- Loading branch information
Showing
38 changed files
with
258 additions
and
304 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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: ondosee-ios-ci | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
CACHED_DEPENDENCY_PATHS: ${{ github.workspace }}/Tuist/Dependencies | ||
ONDOSEE_IOS_DISCORD_WEBHOOK: ${{ secrets.ONDOSEE_IOS_DISCORD_WEBHOOK }} | ||
|
||
jobs: | ||
prepare-dependency: | ||
name: ⚙️ Prepare for CI | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: jdx/mise-action@v2 | ||
with: | ||
xcode-version: 15.2 | ||
|
||
- name: Install tuist | ||
run: mise install tuist | ||
|
||
- name: Compute dependency cache key | ||
id: compute_hash | ||
run: echo "hash=${{ hashFiles('Tuist/Package.swift') }}" >> $GITHUB_OUTPUT | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v3 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ steps.compute_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit == '' | ||
run: tuist install | ||
outputs: | ||
dependency_cache_key: ${{ steps.compute_hash.outputs.hash }} | ||
|
||
test: | ||
name: 🧪 Test | ||
runs-on: macos-14 | ||
needs: prepare-dependency | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
xcode-version: 15.2 | ||
- uses: jdx/mise-action@v2 | ||
|
||
- name: Install tuist | ||
run: mise install tuist | ||
|
||
- name: Check dependency cache | ||
uses: actions/cache@v3 | ||
id: cache_dependencies | ||
with: | ||
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | ||
key: ${{ needs.prepare-dependency.outputs.dependency_cache_key }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: tuist install | ||
|
||
- name: Test with tuist | ||
run: TUIST_ENV=CI tuist test --no-selective-testing | ||
|
||
- name: ondosee iOS Test Success Discord Notification | ||
uses: sarisia/actions-status-discord@v1 | ||
if: ${{ success() }} | ||
with: | ||
title: "✅ 온도씨 iOS Test 성공 !" | ||
description: "Success to test 🧩" | ||
webhook: ${{ env.ONDOSEE_IOS_DISCORD_WEBHOOK }} | ||
color: 0x43962A | ||
|
||
- name: ondosee iOS Test Failed Discord Notification | ||
uses: sarisia/actions-status-discord@v1 | ||
if: ${{ failure() }} | ||
with: | ||
title: "❌ 온도씨 iOS Test 실패 .." | ||
description: "Failed to test 🥺" | ||
webhook: ${{ env.ONDOSEE_IOS_DISCORD_WEBHOOK }} | ||
color: 0xBB3639 | ||
|
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="EHf-IW-A2E"> | ||
<objects> | ||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="53" y="375"/> | ||
</scene> | ||
</scenes> | ||
</document> |
10 changes: 10 additions & 0 deletions
10
Projects/App/iOS-Widget/Sources/Application/OndoseeIOSWidgetApp.swift
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import SwiftUI | ||
|
||
@main | ||
struct OndoseeIOSWidgetApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
EmptyView() | ||
} | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
Projects/App/iOS-Widget/Support/ondoseeWidget.entitlements
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,12 +0,0 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<!-- | ||
ondoseeWidget.plist | ||
ondosee | ||
Created by 정윤서 on 8/20/24. | ||
Copyright (c) 2024 com. All rights reserved. | ||
--> | ||
<plist version="1.0"> | ||
<dict/> | ||
</plist> | ||
11 changes: 0 additions & 11 deletions
11
Projects/App/watchOS/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
Projects/App/watchOS/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.