Continuous Integration (CI) คือแนวปฏิบัติที่ developer merge โค้ดของตนเข้ามาบ่อยครั้ง ลงใน repository ที่ใช้ร่วมกัน ซึ่งแต่ละการ integrate จะถูก ตรวจสอบโดยอัตโนมัติ (build และทดสอบ) มันช่วยจับปัญหาได้เร็วและทำให้โค้ดเบสอยู่ในสภาพที่ดีและทำงานได้
แนวปฏิบัติหลัก
Developers integrate code FREQUENTLY (at least daily) into the shared/main branch:
→ each integration is AUTOMATICALLY built and tested (by a CI server/pipeline)
→ problems are caught IMMEDIATELY (on each small change, not after weeks)
→ vs the old way: developers work in isolation for long periods → painful "integration
hell" when finally merging diverged work (many conflicts, surprises, bugs).
