Skip to content

CICD-018 · Run sibling jobs in parallel ​

Encyclopedia · Jobs, steps and runner selection · All snippets

Previous · CICD-017 · Next · CICD-019

1. Where it fits ​

  • Placement Under the workflow's jobs map.
  • Prerequisites workflow containing the named example jobs or steps.
  • Platforms github-actions, gitea-actions.

2. Copy the snippet ​

yaml
lint:
  runs-on: ubuntu-latest
  steps:
    - run: echo lint
test:
  runs-on: ubuntu-latest
  steps:
    - run: echo test

3. How it works ​

Both mappings live under jobs and have no dependency edge between them. The scheduler can start either job when a matching runner becomes available.

The jobs have independent scheduling edges.

flowchart TD
  N1["Workflow arrives"]
  N2["Lint job"]
  N1 --> N2
  N3["Test job"]
  N1 --> N3
  N4["Lint outcome"]
  N2 --> N4
  N5["Test outcome"]
  N3 --> N5

4. Verify the result ​

Place under jobs and inspect independent queueing. Shared runner capacity may serialize them.

Validation syntax-validated (YAML parse). Status definitions.