Repository navigation
[Feat] PR 빌드·테스트 체크 워크플로 추가 및 H2 테스트 설정 (#31) - #33
Merged
Merged
Conversation
Run build and tests on pull requests so compile and startup failures are caught before merge. Tests use an in-memory H2 database via the test profile instead of requiring a local MariaDB. Closes #31 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
개요
PR 생성/업데이트 시 빌드와 테스트를 자동으로 검증합니다. 기존에는
main/developpush 시 배포 워크플로만 있어서 컴파일 에러나 앱 구동 실패가 머지 후에야 발견됐습니다.Closes #31
변경 사항
.github/workflows/pr-build.ymlmain/develop대상 PR에서 JDK 21 +./gradlew build(테스트 포함) 실행. Gradle 캐시, 실패 시 테스트 리포트 아티팩트 업로드, 같은 PR의 이전 실행 자동 취소, 권한은 읽기 전용src/test/resources/application-test.ymlApiApplicationTests.java@ActiveProfiles("test")추가 (기본 프로필local은 로컬 MariaDB를 찾아 실패했음)deploy.yml은 건드리지 않았습니다.테스트
./gradlew build통과 (테스트 1개, 실패 0, H2로 동작 확인)PR Build Check워크플로가 실제로 실행되고 통과하는지 확인머지 후
main머지 시PR Build Check통과를 필수로 설정🤖 Generated with Claude Code