Afara CLI

Using Afara in CI

Every command except the interactive shell works without a terminal. Without one:

The branch

CI usually checks out a detached HEAD, with no branch. push and compare then take the branch from GITHUB_HEAD_REF (a pull request’s source branch) or GITHUB_REF_NAME, which GitHub Actions sets. On other CI systems, pass --branch <name>. The branch must be tracked by the project (dashboard, Settings → Branches), or the command stops. See Branches.

Failing a build

A typical CI check that fails a build when the code contains behaviour the ticket does not describe:

afara compare "card payment" --fail-on extra

What CI needs


← Afara CLI documentation