260325:1324 Refactor correspondence & rfa #02
CI / CD Pipeline / build (push) Failing after 6m6s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-25 13:24:50 +07:00
parent 89e0ea0567
commit 7865064388
2 changed files with 131 additions and 8 deletions
+20 -8
View File
@@ -12,18 +12,26 @@ jobs:
# ============================================================
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: Setup Node
# ── [1] pnpm ต้องมาก่อน setup-node เสมอ ────────────────
- name: ⚙️ Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: ⚙️ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
# ลบ cache: "pnpm" ออก — ใช้ volume mount บน runner แทน
- name: Install pnpm
uses: pnpm/action-setup@v4
# ── [2] ชี้ store ไปที่ volume ที่ mount ไว้ ─────────────
- name: 🔧 Set pnpm store path
run: pnpm config set store-dir /root/.local/share/pnpm
- name: 📦 Install deps
run: pnpm install --frozen-lockfile
@@ -44,10 +52,14 @@ jobs:
exit 1
fi
- name: 🧪 Run Tests & Coverage
run: |
cd backend && pnpm test
cd ../frontend && pnpm test run
# ── [3] แยก step — เห็น failure ได้ชัดขึ้น ──────────────
- name: 🧪 Test backend
run: pnpm test
working-directory: backend
- name: 🧪 Test frontend
run: pnpm test run
working-directory: frontend
# ============================================================
# JOB 2 : Deploy — Trigger Blue-Green on QNAP