Skip to main content

[Step] Run

The run step is used to execute shell commands as part of a pipeline. The basic syntax is straightforward:

steps:
- run: make all

Each command is translated directly into own simple shell script. The above example is approximately equivalent to the following shell script:

bash -c "set -e; make all"

Since commands are executed serially, if one command fails (exit with non-zero code), the rest of steps will be marked as Skipped and won't run.

Custom name

By default, the name of the run step is derived from the command itself. To specify a custom name, you can use the expanded syntax:

steps:
- run:
name: list files
command: ls -la