StoicBuilder

HandbookX the PortusCI pipelines

Xthe Portus, Ship it

CI pipelines

1 min readUpdated 28 November

In plain words

A CI pipeline is a list of steps, such as install, lint, type-check, test and build, that a service like GitHub Actions runs on every push and pull request, reporting pass or fail.

Where you see it

A pull request on Harbor shows a red cross next to CI / test. Clicking Details opens the run's log, where each step is a collapsible section and the failing one is marked in red.

.github/workflows/ci.ymlconfig
on: [push, pull_request]jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 22, cache: npm } - run: npm ci && npm run lint && npx tsc --noEmit && npm test
npm ci installs exactly what package-lock.json lists, so CI tests the same versions you did.

What goes wrong

  1. Reading the last line instead of the first error

    The log ends with Process completed with exit code 1, which tells you nothing. Scroll up to the first red error inside the failing step.

  2. Passing locally, failing in CI

    CI starts from a clean machine: no .env file, no globally installed tools, a case-sensitive file system, perhaps another Node version. Most of these failures are something your laptop had and the runner didn't.

  3. Making the check pass instead of the code

    Agents sometimes add continue-on-error, skip a test or loosen a lint rule to turn CI green. Question any change to the workflow file or test config inside a pull request.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
CI failed on this pull request. Read the log, find the first failing step and the first real error in it, and explain why it passes locally but not in CI. Fix the cause, and don't edit the workflow file, skip tests or loosen lint rules to make it pass.

Quick check

Sign in to earn +10 XP for it

Harbor's CI fails with Cannot find module './InvoiceRow', but the app runs fine on your Mac. The file is named invoiceRow.tsx. Why?

Got a prompt that touches CI pipelines?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.