Definition
- CI: Continuous Integration
- Every time you push code → tests run → code builds → ensures nothing breaks.
- CD: Continuous Deployment / Delivery
- Your code automatically deploys to a server or hosting platform after CI succeeds.
Analogy
- When you finish your homework, CI (teacher) who automatically checks it for mistakes.
- After the CI (teacher) checks your homework, CD (deliverer) automatically submits it to the school.
Workflow
GitHub Actions:
- Push code to GitHub
- GitHub Actions starts running (CI)
- Install dependencies
- Build the project
- Run tests
- If CI succeeds → Deployment job runs (CD)
- Your app is updated automatically