Foundation project

Project: a gated build pipeline

Lesson 10 of 20 · 23 min · Module 4: A pipeline and its release boundary

Connect a reviewable change to tests and a traceable build output.

Start this lesson →

Free. No installation: you write and run the code in your browser, and it is checked automatically.

By the end, you’ll be able to…

  • Write down the delivery boundary
  • Keep the prerequisite graph explicit

The idea

A workflow combines an event boundary, job dependencies, and ordered steps. Conditions and prerequisite outcomes determine which jobs can run.

01Write down the delivery boundary

This project ends at a checked artifact. Continuous integration can be valuable before production deployment has been automated.

02Keep the prerequisite graph explicit

A build used for delivery must be justified by the test outcome. The needs link carries that dependency.

03Inspect both successful and failing scenarios

The happy path should create an artifact. If tests fail, build and artifact creation should not happen. The later recovery lessons extend that evidence.

Your project brief

Trigger main pushes and pull requests. Use contents: read. Define test with checkout, Node 22, npm ci and npm test. Define build needing test, running npm run build and uploading dist/ as site. Do not deploy in this project.

What the checks look for

  • Covers review and integration events
  • Runs tests with a declared toolchain
  • Gates build and uploads the artifact
  • Keeps contents read-only without deploying
Try it in the editor →

Take this with you

A useful pipeline creates evidence and a traceable artifact before it changes production.

Go a little further

Describe a negative test that proves build is skipped after a failing test job.

Learn CI/CD & Release Engineering for free

20 short lessons with real code and instant checks.

See the whole course →