Skip to content

Commit

Permalink
[Feat] CI 파이프라인 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
jayn2u committed Aug 21, 2024
1 parent 16748f5 commit a1e5a53
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 6 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/BudgetBuddies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: BudgetBuddies Continous Integration

on:
push:
branches: [ "jayn2u" ]
pull_request:
branches: [ "develop" ]

jobs:
build-and-test:
name: 빌드 및 테스트
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Tuist
run: |
bash <(curl -Ls https://install.tuist.io)
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Clean tuist cache
run: tuist clean

- name: Install dependencies
run: tuist install

- name: Generate Xcode project
run: tuist generate

- name: Build
run: |
xcodebuild \
-workspace BudgetBuddies/BudgetBuddies.xcworkspace \
-scheme BudgetBuddies 'platform=iOS Simulator, OS=latest, name=iPhone 15 Pro' \
-configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
33 changes: 27 additions & 6 deletions BudgetBuddies/Project.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import ProjectDescription

let settings: Settings = .settings(configurations: [
.debug(name: "Debug", xcconfig: "BudgetBuddies/Resources/Debug.xcconfig"),
.release(name: "Release", xcconfig: "BudgetBuddies/Resources/Release.xcconfig"),
])
let budgetBuddiesSettings: Settings = .settings(
base: [
// 코드 서명 없이 세팅
"CODE_SIGN_STYLE": "Automatic",
"CODE_SIGN_IDENTITY": "-",
"CODE_SIGNING_REQUIRED": "NO",
"CODE_SIGNING_ALLOWED": "NO",

// Running Device를 iPhone으로 제한
"TARGETED_DEVICE_FAMILY": "1"
],
configurations: [
.debug(name: "Debug", xcconfig: "BudgetBuddies/Resources/Debug.xcconfig"),
.release(name: "Release", xcconfig: "BudgetBuddies/Resources/Release.xcconfig"),
]
)

let budgetBuddiesInfoPlist: InfoPlist = .extendingDefault(with: [
"UILaunchStoryboardName": "LaunchScreen.storyboard",
Expand All @@ -22,12 +34,15 @@ let budgetBuddiesInfoPlist: InfoPlist = .extendingDefault(with: [
"NSAppTransportSecurity": [
"NSAllowsArbitraryLoads": true
],
"CFBundleDevelopmentRegion": "ko",
])

let project = Project(
name: "BudgetBuddies",
settings: settings,
targets: [

// MARK: - BudgetBuddies App

.target(
name: "BudgetBuddies",
destinations: .iOS,
Expand All @@ -46,8 +61,11 @@ let project = Project(
.external(name: "RxCocoa", condition: .none),
.external(name: "PromiseKit", condition: .none),
],
settings: settings
settings: budgetBuddiesSettings
),

// MARK: - BudgetBuddiesTests

.target(
name: "BudgetBuddiesTests",
destinations: .iOS,
Expand All @@ -61,6 +79,9 @@ let project = Project(
.target(name: "BudgetBuddies", condition: .none)
]
),

// MARK: - BudgetBuddiesUITests

.target(
name: "BudgetBuddiesUITests",
destinations: .iOS,
Expand Down

0 comments on commit a1e5a53

Please sign in to comment.