Skip to content

[#5] 빌드와 테스트용 CI를 구성한다#6

Merged
opficdev merged 9 commits into
developfrom
chore/#3-library
Apr 12, 2026
Merged

[#5] 빌드와 테스트용 CI를 구성한다#6
opficdev merged 9 commits into
developfrom
chore/#3-library

Conversation

@opficdev
Copy link
Copy Markdown
Owner

🔗 연관된 이슈

📝 작업 내용

📌 요약

  • GitHub Actions 워크플로(build.yml, test.yml) 추가
  • .gitignore에서 하위 .build/ 경로가 무시되도록 수정
  • 기본 생성 파일 중 불필요 파일을 제거

🔍 상세

  • .github/workflows/build.yml 추가
  • PR 트리거 기반 빌드 워크플로 구성
  • 실패 시 PR 코멘트 알림 설정
  • .github/workflows/test.yml 추가
  • Build 워크플로 성공 후에만 테스트가 실행되도록 workflow_run 연동
  • 실패 시 PR 코멘트 알림 설정
  • .gitignore 수정
  • /.build -> .build/로 변경해 하위 경로 포함
  • 불필요 파일 제거
  • Nexa/Sources/Nexa/Nexa.swift 삭제
  • Nexa/Tests/NexaTests/NexaTests.swift 삭제

@opficdev opficdev self-assigned this Apr 12, 2026
@github-actions
Copy link
Copy Markdown

@opficdev build CI가 실패했습니다.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 PR은 .gitignore의 빌드 디렉토리 경로를 수정하고 Nexa 패키지 정의를 위한 Package.swift 파일을 추가합니다. 검토 결과, Package.swift에 존재하지 않는 Swift 도구 버전(6.3)이 지정되어 있으며, 소스 파일이 없는 타겟 정의로 인해 빌드 에러가 발생할 수 있는 문제가 확인되었습니다. 해당 부분들에 대한 수정이 필요합니다.

Comment thread Nexa/Package.swift Outdated
@@ -0,0 +1,27 @@
// swift-tools-version: 6.3
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

현재 Swift 도구 버전 중 6.3은 존재하지 않습니다. 현재 최신 안정 버전인 6.0을 사용하거나 의도하신 버전을 다시 확인해 주세요.

Suggested change
// swift-tools-version: 6.3
// swift-tools-version: 6.0

Comment thread Nexa/Package.swift
Comment on lines +18 to +20
.target(
name: "Nexa"
),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

PR 설명에 따르면 Nexa.swift 파일이 삭제되었습니다. Swift Package Manager는 타겟 내에 소스 파일이 하나도 없으면 빌드 에러(contains no Swift source files)를 발생시킵니다. 타겟을 유지하려면 Sources/Nexa/ 경로에 최소 하나 이상의 소스 파일이 필요합니다.

Comment thread Nexa/Package.swift
Comment on lines +21 to +24
.testTarget(
name: "NexaTests",
dependencies: ["Nexa"]
),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

NexaTests 타겟 또한 소스 파일이 없으면 빌드 에러가 발생합니다. NexaTests.swift 파일이 삭제된 상태라면 타겟 정의를 제거하거나 테스트 파일을 추가해야 합니다.

@opficdev opficdev merged commit 8f760a0 into develop Apr 12, 2026
4 checks passed
@opficdev opficdev deleted the chore/#3-library branch April 12, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

빌드와 테스트용 CI를 구성한다

1 participant