CI/CD (Continuous Integration / Continuous Deployment) là quy trình tự động kiểm tra và deploy code mỗi khi có thay đổi. Pipeline frontend chạy tuần tự để fail-fast:
- lint + format check (nhanh nhất)
- type check
tsc --noEmit - unit tests với coverage threshold
- production build
Ở tầng staging: deploy preview mỗi PR (Vercel preview URLs rất tiện), chạy E2E tests với Playwright. Deploy production khi merge vào main.
Công cụ phổ biến: GitHub Actions (miễn phí cho open source, tích hợp sẵn GitHub), GitLab CI, hoặc Jenkins/Azure DevOps cho enterprise on-premise.
CI/CD (Continuous Integration / Continuous Deployment) is the automated process for testing and deploying code on every change.
A frontend pipeline runs sequentially to fail fast:
- lint + format check (fastest),
- type check with
tsc --noEmit, - unit tests with a coverage threshold,
- production build
At the staging layer: deploy a preview per PR (Vercel preview URLs are very convenient), then run E2E tests with Playwright.
Deploy to production on merge to main.
Popular tools: GitHub Actions (free for open source, native GitHub integration), GitLab CI, or Jenkins/Azure DevOps for on-premise enterprise.