Skip to main content

Module yaml

Module yaml 

Source
Expand description

YAML workflow definition parser.

Workflow files use a GitHub Actions-inspired format:

name: CI Pipeline
on: push

jobs:
  lint:
    name: Lint
    run: cargo clippy --all-targets

  test:
    name: Unit Tests
    run: cargo test

  build:
    name: Build
    needs: [lint, test]
    run: cargo build --release

  deploy:
    name: Deploy
    needs: [build]
    steps:
      - name: Deploy DB
        run: ./scripts/migrate.sh
      - name: Deploy App
        run: ./scripts/deploy.sh

Structs§

JobDef
A single job definition in the workflow YAML.
StepDef
A single step within a job.
WorkflowDef
Top-level YAML workflow definition.

Enums§

Needs
Dependencies can be a single string or a list.
TriggerDef
Trigger can be a simple string or a structured definition.