Trung BìnhCI/CD iconCI/CD

CI/CD pipeline là gì? Frontend project thường cấu hình pipeline gồm những bước nào?

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:

  1. lint + format check (nhanh nhất)
  2. type check tsc --noEmit
  3. unit tests với coverage threshold
  4. 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.

Xem toàn bộ CI/CD cùng filter theo level & chủ đề con.

Mở danh sách CI/CD