github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/downgrader/testdata/stage-conditional.yaml.golden (about)

     1  pipeline:
     2    identifier: default
     3    name: default
     4    orgIdentifier: default
     5    projectIdentifier: default
     6    properties:
     7      ci:
     8        codebase:
     9          build: <+input>
    10    stages:
    11    - stage:
    12        identifier: test1
    13        name: test
    14        spec:
    15          cloneCodebase: true
    16          execution:
    17            steps:
    18            - step:
    19                identifier: test
    20                name: test
    21                spec:
    22                  command: |-
    23                    go build
    24                    go test
    25                  image: golang
    26                timeout: ""
    27                type: Run
    28          platform:
    29            arch: Amd64
    30            os: Linux
    31          runtime:
    32            spec: {}
    33            type: Cloud
    34        type: CI
    35        when:
    36          condition: <+trigger.targetBranch> == "main" && (<+trigger.event> == "PUSH")
    37          pipelineStatus: Success