What is CI?
CI (Continuous Integration) is a practice in which developers frequently and regularly integrate their changes into a shared repository, and every change is automatically checked.
In simpler terms: every commit is automatically checked so it does not break the project.
What CI is about
The main idea of CI:
- developers commit code often
- changes reach the shared repository right away
- checks run automatically
Bugs are found earlier, not right before a release.
What CI usually does
When a new commit / PR / tag appears, CI:
- downloads the code
- builds the project
- runs linters
- runs the tests
- reports the result (success / failure)
If something fails, the code should not move further.
When CI runs
CI can run:
- on every
push - when a Pull Request is opened
- when a PR is updated
- when a tag is created (a release)
Examples of CI systems
In practice these are:
- GitHub Actions
- GitLab CI/CD
- Jenkins
- CircleCI
- Travis CI
(it is important to know the idea, not a specific tool)
How CI differs from "no CI"
Without CI:
- bugs are found manually
- problems surface right before a release
- complex merges and "overnight fixes"
With CI:
- fast feedback
- fewer conflicts
- a stable main codebase
CI and the Git workflow
CI is especially important for:
- Feature Branch Workflow
- Gitflow
- Trunk-Based Development
In all cases, CI is a guardian of quality.
Short answer for an interview
CI is the practice of continuous integration, where every code change is automatically built and checked with tests, to find errors early and keep the project stable.
Short Answer
Interview readyA concise answer to help you respond confidently on this topic during an interview.