Setup CI/CD pipelines with GitHub Actions for the CLB Tri Thức project. Includes automated testing, building, deployment previews, and production deployment workflows.
Thiết lập GitHub Actions workflows để automate testing, building, và deployment — đảm bảo code quality và deployment reliability.
# Tạo thư mục workflows
mkdir -p .github/workflows
# Các workflow files sẽ được tạo ở dưới
| Workflow | Trigger | Mục đích |
|---|---|---|
ci.yml | Push/PR to main | Lint, type-check, test, build |
e2e.yml | Push/PR to main |
| Run Playwright E2E tests |
deploy-preview.yml | Pull Request | Deploy preview to Vercel |
deploy-production.yml | Push to main | Deploy to production |
cleanup-preview.yml | PR closed | Cleanup preview deployments |
.github/workflows/ci.yml: