Skip to content

Conversation

@endorsement0912
Copy link
Collaborator

@endorsement0912 endorsement0912 commented Aug 13, 2025

#️⃣ 연관된 이슈

Closes #317

📌 과제 설명

  • .gitignore 규칙 업데이트
  • GitHub Actions CI 설정 추가 (main 브랜치 PR 시 자동 테스트 실행)
  • application-template.properties 추가
  • 통합 테스트 지원 클래스(IntegrationTestSupport)에 보안 관련 목 빈 등록 (JWT 필터/예외 필터/블랙리스트 저장소)

👩‍💻 요구 사항과 구현 내용

  • .gitignore 규칙 업데이트

    • application.properties 무시
    • application-local.properties 무시
    • application-test.properties 무시
    • application-prod.properties 무시
    • application-prod-aws.properties 무시
    • application-prod-gcp.properties 무시
  • .github/workflows/ci-pr.yml 추가

    • main 브랜치 PR 시 mysql, postgres 모드로 테스트
    • Gradle 캐시 적용 및 타임아웃 15분 설정
    • 외부 리소스 오토컨피그 비활성화 (Redis, Mail, OAuth2, Session 등)
    • GCP Secret Manager 무력화, Gemini API Key 더미값 적용
    • 테스트 리포트 아티팩트 업로드
    • 더미 추가 및 수정
    • Draft PR일 경우 CI 테스트 건너뛰기 (job-level 조건 추가)
  • application-template.properties 추가

    • 로컬/환경 변수 기반 설정 참고용 템플릿 파일

- IntegrationTestSupport 리팩터링

  • 보안 필터/블랙리스트 의존성으로 인한 컨텍스트 로딩 실패 해소하기 위해 아래처럼 추가
  • @ExtendWith(SpringExtension.class) 추가
  • @TestConfiguration 및 @import로 JwtAuthenticationFilter, JwtExceptionFilter,
    UserBlackListRepository 목 빈 등록

✅ PR 포인트 & 궁금한 점

-application-template.properties 파일 구조와 내용이 충분한지.

  • 개인별로 배포환경이 달라 pr이 올라오면 빌드x 테스트만 하도록 ci 붙였습니다.
  • 따로 application 파일을 추가할 경우 앞으로는 .gitignore에 추가 해야합니다!

@endorsement0912 endorsement0912 self-assigned this Aug 13, 2025
@endorsement0912 endorsement0912 added ✨ feature 새로운 기능 추가 🔧 chore 기능과 직접 관련 없는 작업 labels Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 chore 기능과 직접 관련 없는 작업 ✨ feature 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EA3-212 Chore: PR 테스트 CI 및 기본 application 설정 추가

2 participants