Skip to content

ci: GitHub Actions로 빌드/테스트 무결성 검증 추가 - #56

Merged
deviankim merged 1 commit into
mainfrom
ci/github-actions
Apr 21, 2026
Merged

deviankim merged 1 commit into
mainfrom
ci/github-actions

Conversation

@deviankim

Copy link
Copy Markdown
Member

Summary

  • push / PR (base: main) 에 대해 빌드·테스트를 수행하는 GitHub Actions 워크플로우 추가 (.github/workflows/ci.yml)
  • 단계: wrapper 검증 → compileKotlin/compileTestKotlin → test
  • JDK Temurin 17, gradle/actions/setup-gradle@v4 로 의존성·빌드 캐시 자동화
  • concurrency 그룹으로 동일 ref 이전 실행 자동 취소
  • 테스트 실패 시 build/reports/tests/test 를 아티팩트로 업로드 (7일 보관)
  • gradlew 의 git file mode를 100755 로 교정 (기존 100644면 CI에서 permission denied 발생)

Test plan

  • PR 생성 시 Actions에서 Build & Test job 초록불 확인
  • 로컬에서 credentials.json 없는 환경 시뮬레이션: ./gradlew test 성공 (credential 의존 테스트는 Assume으로 스킵)
  • wrapper-validation 통과 확인

Merge 순서 제안

  1. 이 PR (CI) — 가드레일 선제 도입
  2. chore: 빌드 버전 정렬 및 코드 정리 #54 (code cleanup) — CI 하에서 검증
  3. chore: Gradle 스크립트 Kotlin DSL 마이그레이션 #55 (Kotlin DSL 마이그레이션) — 마지막에 infra 변경

🤖 Generated with Claude Code

- .github/workflows/ci.yml 신규 (push/PR to main 트리거)
- Temurin JDK 17, gradle wrapper 검증, setup-gradle 캐시
- compileKotlin / compileTestKotlin / test 단계로 나눠 실행
- 실패 시 test report 아티팩트 업로드 (retention 7일)
- gradlew 실행 권한을 git 단에서 부여 (mode 100644 → 100755)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@deviankim
deviankim merged commit d34a5b3 into main Apr 21, 2026
1 check passed
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.

1 participant