Repository navigation
setting: GitHub Actions로 CI 적용 #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ee50a12
chore: SPM 의존성 버전 고정을 위해 Package.resolved 추적
oeunji ce37da7
chore: .gitignore 중복 및 동작하지 않는 규칙 정리
oeunji eeb4e58
chore: xcconfig 파일이 앱 번들에 복사되지 않도록 Copy Bundle Resources에서 제외
oeunji ace1c0e
setting: develop 대상 PR에서 빌드 및 유닛 테스트를 실행하는 CI 추가
oeunji 534220d
fix: CI 시뮬레이터 destination을 OS=latest로 지정
oeunji f958e3d
fix: concurrency 그룹을 PR 번호 기준으로 변경
oeunji 912a945
fix: 액션 SHA 고정
oeunji 73189f4
chore: 워크플로 권한을 읽기 전용으로 제한
oeunji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,48 @@ | ||
| name: PR Build & Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [develop] | ||
|
|
||
| # 같은 PR에 새 커밋이 올라오면 이전 실행은 취소 | ||
| concurrency: | ||
| group: pr-build-and-test-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| # 코드를 읽기만 하면 되므로 최소 권한만 부여 | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| # fork에서 올린 PR에는 Secrets가 전달되지 않아 실행되지 않음 (같은 레포 브랜치 PR만 지원) | ||
| unit-test: | ||
| runs-on: macos-26 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Secrets 복원 | ||
| env: | ||
| DEBUG_XCCONFIG: ${{ secrets.DEBUG_XCCONFIG }} | ||
| GOOGLE_SERVICE_STAGE_PLIST: ${{ secrets.GOOGLE_SERVICE_STAGE_PLIST }} | ||
| run: | | ||
| # xcconfig만 있는 폴더라 클론 시 존재하지 않음 | ||
| mkdir -p Koin/Core/Configuration | ||
| echo "$DEBUG_XCCONFIG" | base64 --decode > Koin/Core/Configuration/Debug.xcconfig | ||
| echo "$GOOGLE_SERVICE_STAGE_PLIST" | base64 --decode > GoogleService-Info-Stage.plist | ||
|
|
||
| - name: Xcode 버전 고정 | ||
| run: sudo xcode-select -s /Applications/Xcode_26.4.1.app | ||
|
|
||
| - name: SPM 캐시 | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: SourcePackages | ||
| key: spm-${{ hashFiles('koin.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | ||
|
|
||
| - name: 빌드 & 테스트 | ||
| run: | | ||
| xcodebuild test \ | ||
| -project koin.xcodeproj \ | ||
| -scheme koin-stage \ | ||
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=latest' \ | ||
| -clonedSourcePackagesDirPath SourcePackages | ||
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
231 changes: 231 additions & 0 deletions
231
koin.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Provide test configuration for fork pull requests.
GitHub does not pass repository secrets to a workflow triggered by a fork pull request. Both secret expressions are then empty, so this step cannot restore the
Debug.xcconfigand stage plist required by the Debug test build. Provide non-sensitive test fixtures for fork runs, or explicitly limit the stated CI requirement to pull requests that can receive these secrets. Do not switch topull_request_targetto run untrusted pull request code with secrets. (docs.github.com)🧰 Tools
🪛 zizmor (1.30.0)
[warning] 13-44: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
🤖 Prompt for AI Agents