ci: 배포 워크플로에 테스트 게이트 추가 — 실패 시 배포 중단
CI / build (push) Failing after 11m1s

- 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:
ByungCheol
2026-06-06 14:27:37 +09:00
parent c9ff605ac9
commit 43e2de6c3c
+8 -3
View File
@@ -26,10 +26,15 @@ jobs:
node-version: '22' node-version: '22'
cache: 'npm' cache: 'npm'
- name: Install
run: npm ci
# 테스트 게이트 — 실패 시 이후 빌드/배포 스텝이 실행되지 않음
- name: Test
run: npm test
- name: Build - name: Build
run: | run: npm run build
npm ci
npm run build
- name: Deploy to Nginx (SSH) - name: Deploy to Nginx (SSH)
env: env: