Skip to main content
Dependencies (deps) run in parallel and are not guaranteed to run in order. To run tasks serially in a specific order, use cmds with task: references instead.
Taskfile.yml
version: '3'
tasks:
  build:
    desc: Build the project
    cmds:
      - echo "Building the project..."

  test:
    desc: Run tests
    cmds:
      - echo "Running tests..."

  lint:
    desc: Lint the code
    cmds:
      - echo "Linting code..."

  all:
    desc: Run lint, build, and test in order
    cmds:
      - task: lint
      - task: build
      - task: test
      - echo "All tasks completed!"
By listing tasks under cmds with task: references, each task is executed sequentiallylint will always complete before build, and build before test.

Build docs developers (and LLMs) love