Skip to content

Commit

Permalink
feat : 테스트 CI 파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhoon227 committed Jan 21, 2024
1 parent 89e0383 commit 197cbbb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/action-test-ci.yml
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 버전이 설정

0 comments on commit 197cbbb

Please sign in to comment.