/

Get started

Your first pipeline

Build, test and deploy a small app with three steps and one condition.

updated

Oct 20, 2026

//

6 min read

A pipeline is a list of steps. Each step runs a command, and a step that exits with an error stops the run.

Three steps

steps:
  - name: build
    run: npm run build
  - name: test
    run: npm test
  - name: deploy
    if: branch == main
    run: ./deploy.sh
steps:
  - name: build
    run: npm run build
  - name: test
    run: npm test
  - name: deploy
    if: branch == main
    run: ./deploy.sh
steps:
  - name: build
    run: npm run build
  - name: test
    run: npm test
  - name: deploy
    if: branch == main
    run: ./deploy.sh

Conditions

The if field decides whether a step runs. You can compare the branch, the event, a label or an environment variable.

Run it locally first

Use cinder check to catch a typo before you push. It validates the file and prints the steps it would run.

Still stuck? Try our AI support

Ask in plain words and get an answer from the docs. AI support by Chatbase, partner link.

Create a free website with Framer, the website builder loved by startups, designers and agencies.