# What is CI/CD?

> CI merges and tests code often; CD packages or deploys those builds so shipping is not a manual scramble.

Source: https://fullbytedeveloper.com/blog/what-is-ci-cd
Published here: 2026-12-03, updated 2026-12-03

Continuous integration (CI) is the practice of merging code changes into a shared project often, then running automated builds and tests so broken integrations show up while they are still small [1]. Continuous delivery and continuous deployment extend that pipeline toward packaging and release [1]. Related workflow: [GitHub flow for beginners](/blog/github-flow-for-beginners). Cost follow-ups: [ci-minutes](/blog/ci-minutes), [hung-job](/blog/hung-job).

## Quick start (under a minute)

List workflow files in a git checkout that uses GitHub Actions:

```bash
find .github/workflows -name '*.yml' -o -name '*.yaml' 2>/dev/null | head
```

You should see one or more YAML paths. Each file is a workflow definition per GitHub's component model [2].

## Worked example on this draft host

Observed on this draft host (find GNU findutils, fullbytedeveloper-website checkout, 2026-12-03):

```text
$ find .github/workflows -name '*.yml' -o -name '*.yaml' 2>/dev/null | head
.github/workflows/indexnow.yml
```

This checkout lists one workflow file today. Your repository may list more. The point is that CI configuration lives in version control beside the code, not only on someone's laptop [2].

## Draw the pipeline vocabulary

<figure aria-label="Branch and PR run build and test jobs before main, then optional deploy">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 220" role="img" aria-hidden="true">
  <defs>
    <marker id="whatiscicd-ci-arr" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto">
      <path d="M0,0 L8,4 L0,8 Z" fill="#14b8a6"/>
    </marker>
  </defs>
  <rect x="0" y="0" width="360" height="220" rx="12" fill="#0b1f3a"/>
  <rect x="12" y="78" width="70" height="56" rx="4" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="47" y="102" text-anchor="middle" font-size="12" font-weight="600" fill="#e6edf7" font-family="system-ui,sans-serif">branch</text>
  <text x="47" y="118" text-anchor="middle" font-size="12" fill="#e6edf7" font-family="system-ui,sans-serif">+ PR [1]</text>
  <line x1="82" y1="96" x2="108" y2="78" stroke="#14b8a6" stroke-width="2" marker-end="url(#whatiscicd-ci-arr)"/>
  <line x1="82" y1="116" x2="108" y2="134" stroke="#14b8a6" stroke-width="2" marker-end="url(#whatiscicd-ci-arr)"/>
  <rect x="112" y="48" width="72" height="52" rx="4" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="148" y="72" text-anchor="middle" font-size="12" font-weight="600" fill="#e6edf7" font-family="system-ui,sans-serif">build</text>
  <text x="148" y="88" text-anchor="middle" font-size="12" fill="#e6edf7" font-family="system-ui,sans-serif">job [2]</text>
  <rect x="112" y="112" width="72" height="52" rx="4" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="148" y="136" text-anchor="middle" font-size="12" font-weight="600" fill="#e6edf7" font-family="system-ui,sans-serif">test</text>
  <text x="148" y="152" text-anchor="middle" font-size="12" fill="#e6edf7" font-family="system-ui,sans-serif">job [2]</text>
  <line x1="184" y1="74" x2="214" y2="100" stroke="#14b8a6" stroke-width="2" marker-end="url(#whatiscicd-ci-arr)"/>
  <line x1="184" y1="138" x2="214" y2="112" stroke="#14b8a6" stroke-width="2" marker-end="url(#whatiscicd-ci-arr)"/>
  <rect x="218" y="78" width="58" height="56" rx="4" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="247" y="110" text-anchor="middle" font-size="12" font-weight="600" fill="#e6edf7" font-family="system-ui,sans-serif">main</text>
  <line x1="276" y1="106" x2="298" y2="106" stroke="#14b8a6" stroke-width="2" marker-end="url(#whatiscicd-ci-arr)"/>
  <rect x="302" y="78" width="46" height="56" rx="4" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="325" y="102" text-anchor="middle" font-size="12" font-weight="600" fill="#e6edf7" font-family="system-ui,sans-serif">deploy</text>
  <text x="325" y="118" text-anchor="middle" font-size="11" fill="#e6edf7" font-family="system-ui,sans-serif">opt CD</text>
  <text x="180" y="28" text-anchor="middle" font-size="12" fill="#e6edf7" font-family="system-ui,sans-serif">fail gates merge or notify [1]</text>
  <text x="180" y="204" text-anchor="middle" font-size="12" fill="#e6edf7" font-family="system-ui,sans-serif">events trigger workflows on GitHub Actions [2]</text>
</svg>
</figure>

Atlassian separates integration (merge and verify) from delivery (artifact ready) and deployment (users receive it) [1]. GitHub Actions names the mechanics: events, workflows, jobs, steps, runners [2].

## Say CI in one sentence, then CD

Atlassian defines continuous integration as automating integration from multiple contributors: changes land in a central repository where builds and tests assert correctness before or as part of integration [1]. Version control is the spine of that loop [1].

| Phase | Job (Atlassian framing) [1] |
|---|---|
| Continuous integration | Merge often; build and test on the shared line |
| Continuous delivery | Keep a packaged artifact ready to ship |
| Continuous deployment | Automatically distribute when checks pass |

A YAML file alone is not CI if nobody merges frequently or failing tests never block integration [1]. The practice and the wiring must match.

## Meet one platform: GitHub Actions

GitHub Docs: Actions is a CI/CD platform that automates build, test, and deployment pipelines [2]. A workflow is a YAML file under `.github/workflows`, triggered by repository events. Jobs run on runners (GitHub-hosted or self-hosted). Steps run shell commands or reusable actions [2].

Teaching skeleton matching the docs' component story [2]:

```yaml title=".github/workflows/example.yml"
on:
  pull_request:
  push:
    branches: [main]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm test
```

Replace `npm` with your stack. The event (`on`) decides when the workflow runs. The job groups steps that share a runner. Failed steps fail the job unless you handle them [2].

## What runs on each pull request

A typical open-source CI job checks out the merge commit, installs dependencies, runs unit tests, and sometimes lints or builds artifacts. Protected branches can require the job before merge. That requirement is policy on top of the automation [2].

Logs live in the Actions UI for GitHub. The same concepts appear on GitLab CI, CircleCI, and Jenkins with different syntax. This page stops at vocabulary plus one platform map so you can read any vendor's docs.

## Read status badges as signals, not trophies

Open source repos display CI badges in README files. A green badge means the last workflow run on that branch succeeded per GitHub's reporting [2]. It does not prove security review, performance testing, or deployment to production. Treat badges as a quick link to the Actions tab, not a substitute for reading the YAML.

When you fork a project, workflows may not run until you enable Actions or supply secrets. A missing badge on a fork is often configuration, not quality.

## Map jobs to branch protection

GitHub lets administrators require status checks before merge. The check name must match the job or workflow name you emit from Actions [2]. A common failure mode is renaming the job in YAML without updating branch protection, which leaves pull requests unmergeable with confusing "expected check" messages.

Document required checks in the contributor guide. New contributors should not need tribal knowledge to see why merge is blocked.

## Artifacts and deployment hooks

CI jobs can upload build artifacts (binaries, test reports, container images) for later CD steps [2]. Continuous delivery attaches those artifacts to version tags or environment promotions. Continuous deployment pushes them automatically when staging checks pass.

This site runs `npm run check` inside CI so content lint failures block merge the same way unit tests would. That pattern is CI guarding repository invariants, not CD unless you also auto-publish Pages from the same workflow.

## Keep delivery and deployment honest

Continuous delivery means the team could ship the current build with low ceremony: green tests, known artifact, documented promotion steps [1]. Continuous deployment removes the human promotion step and lets the pipeline release when gates pass. Many regulated teams stop at delivery and keep a human approval for production.

Do not conflate "we docker build on main" with deployment if no process actually rolls out the new image.

## Separate glossary from cost tricks

Once the words are clear, optimize runner minutes with [ci-minutes](/blog/ci-minutes) and stuck jobs with [hung-job](/blog/hung-job). Branching habits belong with [GitHub flow for beginners](/blog/github-flow-for-beginners).

## Where tests live in the loop

Unit tests invoked from CI usually mirror commands developers run locally (`npm test`, `pytest`, `go test ./...`) [2]. The point is parity: if CI passes but laptops fail, your documentation or default command is wrong. If laptops pass but CI fails, check environment variables, seeded databases, and architecture-specific assumptions.

Integration tests may need services. CI compose files or service containers spin up dependencies for the duration of a job. That wiring is still CI configuration; CD only enters when you ship the artifact those tests guarded.

## Common mistakes and misconceptions

Saying "we do CI/CD" when only a human runs tests locally before merge.

Treating a scheduled nightly build as integration without merging small changes during the day [1].

Green CI means secure code. Tests only cover what you wrote tests for.

CD requires Kubernetes. Delivery can be a tarball, a static site upload, or an app store submission.

Ignoring flaky tests until the team ignores red CI altogether.

Using `continue-on-error` everywhere and wondering why main is broken.

Before the next retrofit, open `.github/workflows` and label each job as integration, delivery, or deployment. If your team already branches the way [GitHub flow for beginners](/blog/github-flow-for-beginners) describes but only runs tests on laptops, you have half a pipeline. Wire the missing half in YAML, then chase runner bills with [ci-minutes](/blog/ci-minutes) once usage shows up in the dashboard. When a job hangs past dinner, [hung-job](/blog/hung-job) is the timeout checklist that pairs with the vocabulary on this page.

Send this to the friend whose deploy still means SSH and a prayer.

Image: Concept illustration of branch and PR feeding parallel build and test jobs before main then optional deploy, CI pipeline stages with no people and no readable UI text.
https://fullbytedeveloper.com/media/what-is-ci-cd/what-is-ci-cd-venice.webp
Continuous integration runs builds and tests on the shared line; delivery and deployment follow when checks pass.

## Sources

1. [Atlassian: What is continuous integration, accessed 2026-12-03](https://www.atlassian.com/continuous-delivery/continuous-integration)
2. [GitHub Docs: Understanding GitHub Actions, accessed 2026-12-03](https://docs.github.com/en/actions/get-started/understand-github-actions)
3. [Full Byte Developer: Save GitHub Actions minutes](https://fullbytedeveloper.com/blog/ci-minutes)
4. [Full Byte Developer: Hung jobs and timeouts](https://fullbytedeveloper.com/blog/hung-job)
5. [Full Byte Developer: GitHub flow for beginners](https://fullbytedeveloper.com/blog/github-flow-for-beginners)
