Shaf Lab

Continuous integration

Automated build and test pipelines that run when you push or open a pull request, such as GitHub Actions.

Continuous integration is the practice of running automated builds and tests when you push or open a pull request. GitHub Actions is one hosted way to do it; the idea is older than any one vendor. The goal is to find broken tests, types, or packaging before the change lands on the main branch.

A good pipeline is short, deterministic, and easy to run locally. If a check can only pass in CI, people will treat failures as weather. Start with install, lint, typecheck, and unit tests. Add slower end-to-end jobs behind a label or a nightly schedule so they do not block every typo fix.

For agent-written code, CI is part of the agent's feedback loop. Let the agent see the same checks a human would. Fail clearly, with a log the model can read, instead of a red badge and no output.

Keep credentials scoped to the job that needs them, and do not use CI as a hidden production deploy unless that is an explicit, reviewed path. The pipeline should be boring and trustworthy.