For the complete documentation index, see llms.txt. This page is also available as Markdown.

Parallelism

Pipeline steps are executed sequentially by default. You can optionally run steps in parallel.

Parallel steps

This pipeline executes backend and frontend steps in parallel, followed by a notify step.

kind: pipeline
spec:
  stages:
    - type: ci
      spec:
        steps:
          - type: parallel
            spec:
              steps:
                - name: backend
                  type: run
                  spec:
                    container: golang
                    script: |-
                      go build
                      go test

                - name: frontend
                  type: run
                  spec:
                    container: node
                    script: |-
                      npm install
                      npm test

          - name: notify
            type: plugin
            spec:
              name: slack
              inputs:
                webhook: ${{ secrets.get("slack_webhook") }}

Last updated

Was this helpful?