d3ro-voice/.gitlab-ci.yml
Yun Chan 3f4d0c5828 Phase 7~8 구현: 테스트 + 빌드 + CI/CD + SoundEffect + AutoLaunch + UI 리디자인
- vitest 41개 단위 테스트 (HistoryService, DictionaryService, CustomInstructionService, VoiceModeService, D3ROError)
- electron-builder.yml (NSIS, asarUnpack, extraResources)
- .gitlab-ci.yml (lint, typecheck, test, build, release)
- SoundEffectService: WAV 프리로드 + PowerShell 재생 + VoiceMode 연동
- AutoLaunchService: app.setLoginItemSettings + ConfigService 동기화
- TextInsertService: 간이 삽입 검증 (EditMonitor 경량)
- 번들링 인프라: SoX 다운로드 스크립트, PyInstaller 빌드, 경로 해상도 유틸
- AudioCaptureService/LocalSTTService: 번들 경로 자동 감지
- 08-design-system.md 기반 MUI 테마 (다크+라이트+auto 테마 시스템)
- 전체 UI 컴포넌트 리디자인: AppLayout, Dashboard, StatusBar, History, Dictionary, Commands, Settings
- 효과음 WAV 생성: recording-start, recording-stop, error
- EPIPE 에러 핸들링 추가
2026-04-05 09:12:56 +09:00

99 lines
2.4 KiB
YAML

stages:
- check
- test
- build
- release
variables:
NODE_VERSION: "20"
npm_config_cache: "$CI_PROJECT_DIR/.npm"
# Node.js 캐시
.node-cache: &node-cache
cache:
key:
files:
- package-lock.json
paths:
- .npm/
- node_modules/
# ── Check Stage ──────────────────────────────────────────
lint:
stage: check
image: node:${NODE_VERSION}
<<: *node-cache
before_script:
- npm ci --ignore-scripts
script:
- npm run lint
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
typecheck:
stage: check
image: node:${NODE_VERSION}
<<: *node-cache
before_script:
- npm ci --ignore-scripts
script:
- npm run typecheck
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# ── Test Stage ───────────────────────────────────────────
unit-test:
stage: test
image: node:${NODE_VERSION}
<<: *node-cache
before_script:
- npm ci --ignore-scripts
script:
- npm run test:unit
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# ── Build Stage ──────────────────────────────────────────
build:
stage: build
image: node:${NODE_VERSION}
<<: *node-cache
before_script:
- npm ci
script:
- npm run build
artifacts:
paths:
- out/
expire_in: 1 day
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# ── Release Stage (태그 푸시 시만 실행) ──────────────────
package-windows:
stage: release
tags:
- windows # Windows 러너 필요 (native 모듈 빌드)
before_script:
- npm ci
script:
- npm run build
- npm run dist
artifacts:
paths:
- release/
expire_in: 30 days
rules:
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+/
# Docker 러너에서 Windows 빌드가 불가한 경우 아래 대안 사용:
# Wine + electron-builder --linux 크로스빌드 또는
# Windows self-hosted runner 등록