Conversation
- 아키텍처 가드 라이브러리 `Konsist` 도입 및 검증 전용 `:konsist` 모듈 추가 - `LayerDependencyKonsistTest` 구현: domain 레이어가 data/presentation 레이어 및 `core:model` 이외의 코어 모듈(network, ui 등)을 참조하지 않도록 의존성 방향 제한 - GitHub Actions 워크플로우(`unit-test.yml`)에 `:konsist:test` 태스크를 추가하여 CI 단계에서 아키텍처 규칙 자동 검증 - 테스트 결과 리포트 보관 경로에 `:konsist` 모듈의 테스트 결과 추가 - `settings.gradle.kts` 및 `libs.versions.toml`에 신규 모듈 및 라이브러리 정의 반영
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.
📌𝘐𝘴𝘴𝘶𝘦𝘴
closed test: Konsist 도입 — domain 레이어 의존 방향(의존 역전) 아키텍처 테스트 추가 #385
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
:konsist순수 JVM 모듈(java-library + kotlin.jvm) 신설 —Konsist.scopeFromProject()로 소스 import 를 스캔 (ad5af26)LayerDependencyKonsistTest: domain 패키지(com.afternote..domain..) 파일이 ① data/presentation 레이어 ②core:model외 코어(network/ui/common 등)에 역의존하지 않음을 정규식 2종으로 강제core:model, 같은 domain 레이어(cross-domain 포함)settings.gradle.ktsinclude +libs.versions.tomlkonsist 0.17.3 + CIunit-test.yml에:konsist:test및 리포트 artifact 경로 추가📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
UI 변경 없음 — 아키텍처 테스트 모듈 추가.
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
domain → core:network같은 위반까지 탐지./gradlew :konsist:test --rerun-tasksBUILD SUCCESSFUL (위반 0건). 순수 JVM 모듈이라compileDebugKotlin대신testtaskunit-test.yml의testDebugUnitTest에:konsist:test병행 (순수 JVM 이라testDebugUnitTest미보유)