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

Matrix

A matrix strategy can be used to test multiple versions of tools in a single pipeline step definition.

Single-dimension

This pipeline runs two test steps with different versions of the node Docker image .

kind: pipeline
spec:
  stages:
  - type: ci
    spec:
      steps:
      - name: test
        type: script
        strategy:
          type: matrix
          spec:
            axis:
              node_version: [ "12", "14" ]
        spec:
          image: node:${{ matrix.node_version }}
          run: |-
            npm install
            npm test

Multi-dimension

This pipeline runs four test steps with different versions of the python Docker image and pytorch package.

Last updated

Was this helpful?