02 / Runs

Run the real suite from any worktree

bareci run -- bun test packs the worktree as it is, uncommitted changes included, runs the command on a fresh machine from the repository's image, streams the output back and exits with the command's exit code. Agents learn in a minute what they would otherwise wait on CI to learn.

terminal
bareci run -- bun test
bareci run --shards 4 -- ./test-shard.sh
bareci run --collect coverage -- bun test --coverage

How it works

The worktree, as it is

The CLI uploads tracked and untracked files that git does not ignore, so node_modules stays behind and the image's dependencies are used. Uploads go straight to storage and are deleted when the run ends.

Same machines as CI

Runs share the repository's pools, cap and isolation with its Actions jobs. The command runs as an unprivileged user with only the run's own environment and no secrets.

Shards and artifacts

--shards N fans the command out over N machines with the shard index and total set. --collect brings back reports and screenshots, and JUnit files feed Tests.

Built for agents

Every answer is structured and names the next step. Logs are read with a long poll, so an agent waits on BareCI rather than polling in a loop.

At a glance

UploadUp to 100 MB, tar.gz or git bundle
Timeout30 minutes by default, up to 6 hours
Output keptUp to 32 MB per run
Artifacts kept7 days

Questions

Does a run use GitHub Actions minutes?

No. A run goes straight from the CLI or MCP to a BareCI machine. It is billed as machine time against the same monthly cap as CI.

Can a run reach my secrets?

No. A run gets only the environment values you pass with it. Repository and organisation secrets are never given to runs.