Ensuring Quality with Automated Testing and CI/CD
Automated testing and CI/CD pipelines are essential for maintaining software quality while shipping fast.
The Test Pyramid
```
E2E Tests (few)
Integration Tests (moderate)
Unit Tests (many)
```
Balance tests at each level for optimal coverage and speed.
CI/CD Pipeline Structure
1. On Pull Request
- ESLint code checks
- TypeScript type checking
- Unit test execution
2. Post-merge
- Integration tests
- Build and deploy to staging
3. Production Release
- E2E tests (Playwright)
- Lighthouse performance checks
- Production deployment
Tool Stack
- Test runner: Vitest (unit) / Playwright (E2E)
- CI/CD: GitHub Actions
- Deploy: Cloudflare Pages
- Monitoring: Sentry (errors) / Lighthouse CI (performance)
DONOMI's Quality Standards
All DONOMI projects standardize CI/CD pipeline setup, enabling safe and rapid release cycles.

