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

- 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:33 +09:00
parent e9a3fc82e5
commit b748f7d48d
+3 -2
View File
@@ -28,10 +28,11 @@ jobs:
java-version: '17'
cache: gradle
- name: Build jar (skip tests)
# clean build 는 test 를 포함 — 테스트 실패 시 jar 가 생성되지 않아 배포 중단(게이트)
- name: Build jar (테스트 포함)
run: |
chmod +x ./gradlew
./gradlew --no-daemon clean bootJar -x test
./gradlew --no-daemon clean build
- name: Deploy (SSH + systemd)
env: