-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
89e0383
commit 197cbbb
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
name: test-ci | ||
|
||
// ✅ 트리거 조건 (push 하거나 PR 하면 하단의 jobs를 실행하겠다는 뜻) | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
- feature/** # 테스트용 트리거 | ||
|
||
// ✅ 트리거 발생 시 실행할 작업들 | ||
jobs: | ||
test: | ||
runs-on: macos-latest // iOS 플랫폼에서 실행 | ||
|
||
steps: | ||
- name: Checkout respository | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build and test | ||
run: | | ||
pod install --repo-update --clean-install --project-directory=KCS/ \ | ||
xcodebuild clean test -workspace KCS/KCS.xcworkspace \ | ||
-scheme KCS \ | ||
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' | ||
// CocoaPod 을 사용하므로 설치후 테스트 진행 | ||
// ❗-project 옵션으로 scheme 설정 | ||
// ❗-destination 옵션으로 OS 버전이 설정 |