Some checks failed
Deploy SOLUTION_ERP / build-deploy (push) Failing after 59s
Optimize CI/CD theo Option C bàn trong chat: ==== Path filter (saving 100% time cho commit MD-only) ==== on: push: paths-ignore mới — skip CI khi commit chỉ docs/skill/MD/gitignore. - 'docs/**' - '**/*.md' - '.claude/skills/**' - '.gitignore' - 'scripts/**.md' Commit 'Docs: chốt session' và similar sẽ KHÔNG trigger workflow → save 196s/commit. Nếu cùng commit thay đổi cả MD + code → vẫn trigger (đúng behavior expected). Workflow file `.gitea/workflows/**` chính NÓ thì không trong paths-ignore → vẫn trigger khi sửa CI config (an toàn). ==== npm junction cache (saving ~70-80s code commit) ==== Replace Build fe-admin + fe-user steps với cache-aware version. Strategy: - Cache key = SHA256(package.json) 16-char prefix → đổi deps = miss → fresh - Cache stored: C:\npm-cache-erp\<app>\<hash>\node_modules (ngoài workspace) - Junction `fe-admin\node_modules → cache` (instant, không file copy) - Lần đầu (cold): 49s + 33s = 82s (như cũ) - Lần sau (warm): mklink instant + skip npm install → ~3s + 3s = 6s (saving ~76s) Safety: - Trước Deploy: convert junction → nothing (cmd /c rmdir /q chỉ remove ref, không follow target). Tránh trường hợp act_runner cleanup workspace follow junction + delete cache. - Pruning: keep top 5 cache per app (~250MB × 5 × 2 = 2.5GB max disk usage). Stale evicted FIFO theo LastWriteTime DESC. Vite 8 rolldown native binding gotcha (#20) vẫn respect: cache install trên runner Windows nên rolldown binding match → reuse được. ==== Expected ==== - Commit MD-only: 0s CI (skip hoàn toàn) - Commit code lần đầu sau cache miss (vd npm update): ~3min (như cũ) - Commit code thường (cache hit): ~120s = 2 phút (giảm 38%) Verify dotnet test local: 71 pass / 2s (BE không thay đổi). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>