Setup steps
Shell commands that prepare the sandbox before the agent starts each automation run.
Setup steps are shell commands that prepare the sandbox before the agent starts, such as installing dependencies. They run on every automation run in the workspace, after the repositories are cloned.
Add setup steps
Section titled “Add setup steps”Under Agent, add one command per line:
npm cinpx playwright install --with-deps chromiumRun your automation once and open the automation run to see the output of each command.
How setup steps run
Section titled “How setup steps run”- Commands run in order, in the primary repository.
- Each line runs on its own, so a
cdor a variable doesn’t carry over to the next line. Join commands with&&when one depends on another. - If a command fails, setup stops and the automation run fails.
- Blank lines are ignored.
- Setup steps apply to every automation in the workspace. To start an automation run without them, set
agent.skip_setup_commands: truein the automation. See Steps. - For preparation that only one automation needs, use a Bash step in that automation instead.