- deploy.yaml 은 CI와 별개로 push:[main]에 트리거되며 테스트를 건너뛰고 있었음 (백엔드 bootJar -x test, 프론트 테스트 스텝 없음) → 게이트 무력 - 배포 잡 안에서 테스트를 먼저 실행하도록 변경(Gitea는 워크플로 간 needs 불안정) · 백엔드: clean bootJar -x test → clean build (test 포함) · 프론트: Install → Test(npm test) → Build 순으로 분리 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -26,10 +26,15 @@ jobs:
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install
|
||||
run: npm ci
|
||||
|
||||
# 테스트 게이트 — 실패 시 이후 빌드/배포 스텝이 실행되지 않음
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to Nginx (SSH)
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user