harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
32.09k stars 2.8k forks source link

matrix support list #3415

Closed willzhang closed 10 months ago

willzhang commented 10 months ago

this work

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

but this not work, i have a long list , so i hope list them as a list wilth - 12 -14

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
willzhang commented 10 months ago

alreayd support.