forked from baron/baron-sso
adminfront, devfront codecheck CI 추가
This commit is contained in:
45
README.md
45
README.md
@@ -301,6 +301,51 @@ KETO_WRITE_URL = "http://keto:4467"
|
||||
- **Flutter(User)**: `userfront/lib/i18n.dart`에서 `tr(key, fallback, params)` 사용. `locales/*.toml`을 `tools/i18n-scanner/gen-flutter-i18n.js`로 `userfront/lib/i18n_data.dart`에 사전 생성합니다.
|
||||
- **검증**: `node tools/i18n-scanner/index.js`로 코드-키-로케일 동기화 상태를 점검합니다.
|
||||
|
||||
## 🧪 Code Check CI
|
||||
워크플로우 파일: `.gitea/workflows/code_check.yml`
|
||||
|
||||
### 트리거
|
||||
- `push` (`dev` 브랜치)
|
||||
- `pull_request` (`dev` 대상)
|
||||
- `workflow_dispatch` (수동 실행)
|
||||
|
||||
### workflow_dispatch 입력값
|
||||
- `run_lint`: Go/Flutter lint 실행 여부
|
||||
- `run_backend_tests`: backend 테스트 실행 여부
|
||||
- `run_userfront_tests`: userfront 테스트 실행 여부
|
||||
- `run_adminfront_tests`: adminfront 테스트 실행 여부
|
||||
- `run_devfront_tests`: devfront 테스트 실행 여부
|
||||
|
||||
### 실행 잡
|
||||
- `lint`
|
||||
- `backend-tests`
|
||||
- `userfront-tests`
|
||||
- `adminfront-tests`
|
||||
- `devfront-tests`
|
||||
|
||||
### 프런트 테스트 브라우저 프리비저닝 정책
|
||||
- `userfront-tests`
|
||||
- 실행 가능한 Chrome/Chromium을 탐지하고, 없으면 설치 후 테스트 실행
|
||||
- `CHROME_EXECUTABLE` 지정 후 웹 테스트를 실행
|
||||
- `adminfront-tests`, `devfront-tests`
|
||||
- Playwright 기반 테스트
|
||||
- `npx playwright install --with-deps`로 브라우저/OS 의존성을 사전 설치
|
||||
|
||||
### 실패 보고서 확인 방법
|
||||
테스트가 실패하면 다음이 자동 생성됩니다.
|
||||
- Job Summary: 실패 원인 요약(Markdown) 즉시 확인
|
||||
- Artifact: 상세 로그/리포트 다운로드
|
||||
- `backend-test-failure-report`
|
||||
- `userfront-test-failure-report`
|
||||
- `adminfront-test-failure-report`
|
||||
- `devfront-test-failure-report`
|
||||
|
||||
### userfront의 `skipped` 테스트 안내
|
||||
- `locale_storage_platform_test.dart`는 웹 전용 테스트(`kIsWeb`)를 포함합니다.
|
||||
- 따라서 일반 `flutter test`(VM)에서는 일부 테스트가 `skipped` 되는 것이 정상입니다.
|
||||
- 실제 웹 실행 검증은 별도 단계에서 수행합니다.
|
||||
- `flutter test --platform chrome test/locale_storage_platform_test.dart`
|
||||
|
||||
### 로컬 개발 (Manual)
|
||||
Docker 없이는 개발할 수 없지만 Backend 및 [user/admin/dev]Front 코드는 개발모드로 수정하며 개발가능.
|
||||
백그라운드로 infra 및 ory stack이 구동중이라는 가정
|
||||
|
||||
Reference in New Issue
Block a user