Adding a Sequential Workflow

Getting started with sequential workflows

When you list your tasks in a Sail CI file they are run sequentially in the order you specify:

.sail.yml with tasks only

tasks:
  build:
    image: node:carbon
    command:
      - yarn
    args:
      - install
  lint:
    image: node:carbon
    command:
      - yarn
    args:
      - lint
  test:
    image: node:carbon
    command:
      - yarn
    args:
      - test

For example, the tasks above for a Node.js project would run in the order buildlint and test.

To be more specific or set your own ordering, you can use the workflow property:

.sail.yml with tasks and workflow

tasks:
build:
image: node:carbon
command:
- yarn
args:
- install
lint:
image: node:carbon
command:
- yarn
args:
- lint
test:
image: node:carbon
command:
- yarn
args:
- test
workflow:
- build
- lint
- test