-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.6 KB
/
Copy pathios.yml
File metadata and controls
54 lines (44 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: iOS Build & Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: Build & Test (iOS Simulator)
runs-on: macos-14
timeout-minutes: 30
env:
PROJECT_PATH: Controllers/Controllers.xcodeproj
SCHEME: Controllers
DESTINATION: platform=iOS Simulator,name=iPhone 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode version
run: xcodebuild -version
- name: List project schemes
run: xcodebuild -list -project "$PROJECT_PATH"
- name: List available simulators
run: xcrun simctl list devices available | head -50
- name: Build
run: |
set -o pipefail
xcodebuild build \
-project "$PROJECT_PATH" \
-scheme "$SCHEME" \
-destination "$DESTINATION" \
-configuration Debug \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=""
# NOTE: Test 단계는 의도적으로 비활성화 상태입니다.
# Controllers.xcscheme 의 <TestAction>에 ControllersTests target이
# Testable로 등록되어 있지 않아 `xcodebuild test`가
# "Scheme Controllers is not currently configured for the test action"
# 에러로 실패합니다. scheme TestAction 보강 후 별도 PR에서 다시 활성화 예정.
# 관련 파일: Controllers/Controllers.xcodeproj/xcshareddata/xcschemes/Controllers.xcscheme