Full Byte Developer.

What is CI/CD?

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

Published here , updated · 5 sources

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. Cost follow-ups: ci-minutes, 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

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].

PhaseJob (Atlassian framing) [1]
Continuous integrationMerge often; build and test on the shared line
Continuous deliveryKeep a packaged artifact ready to ship
Continuous deploymentAutomatically 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]:

.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 and stuck jobs with hung-job. Branching habits belong with 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 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 once usage shows up in the dashboard. When a job hangs past dinner, 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.

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.
Continuous integration runs builds and tests on the shared line; delivery and deployment follow when checks pass.

Keep this guide

By Full Byte Developer

Filed under Dev explainers, Dev tools

Questions about this guide

What does CI stand for?

Continuous integration: contributors merge into a shared line often, and automated builds and tests run on each integration to catch breakage early.

How is CD different?

Continuous delivery keeps a release candidate ready to ship. Continuous deployment goes further and automatically promotes that candidate when checks pass.

Is GitHub Actions the same as CI?

GitHub Actions is a CI/CD platform. CI is the practice of integrating often with automated verification. Actions is one way to run it.

Can you have CI without CD?

Yes. Many teams run tests on every pull request but still deploy manually. The glossary still helps you read their YAML.

What triggers a workflow?

On GitHub Actions, events such as push, pull_request, or schedule listed in the workflow file. The docs map events to workflows [2].

Sources

Next in this stack