260325:1324 Refactor correspondence & rfa #02
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user