CI Workflow (ci.yml):
- Lint and type check for frontend/backend
- Backend unit tests with MariaDB service container
- Frontend production build
- E2E Playwright tests on pull requests
- Security vulnerability scanning
- CI summary job for status reporting
Test Deployment (deploy-test.yml):
- Triggers on push to develop branch
- Manual workflow dispatch support
- SSH deployment with release management
- Health checks and API smoke tests
- Full E2E test suite on test environment
Production Deployment (deploy-prod.yml):
- Triggers on push to main or version tags
- Pre-deployment backup creation
- Atomic symlink deployment for zero-downtime
- Graceful PM2 reload
- Automatic rollback on verification failure
- Production smoke tests
- Deployment summary reporting
Documentation:
- Updated DEPLOYMENT-PIPELINE.md with complete guide
- Server directory structure documentation
- Required secrets documentation
- Rollback procedures
- Troubleshooting guide