diff --git a/pipeline/frontend/yaml/linter/schema/.woodpecker/test-dag.yaml b/pipeline/frontend/yaml/linter/schema/.woodpecker/test-dag.yaml new file mode 100644 index 000000000..f46d75cc2 --- /dev/null +++ b/pipeline/frontend/yaml/linter/schema/.woodpecker/test-dag.yaml @@ -0,0 +1,22 @@ +steps: + first: + image: test + + second: + depends_on: first + image: test + + next: + image: test + depends_on: + - first + - second + + some: + image: test + depends_on: + - first + + last: + image: test + depends_on: next diff --git a/pipeline/frontend/yaml/linter/schema/schema_test.go b/pipeline/frontend/yaml/linter/schema/schema_test.go index 1ae068091..29bc5a4c4 100644 --- a/pipeline/frontend/yaml/linter/schema/schema_test.go +++ b/pipeline/frontend/yaml/linter/schema/schema_test.go @@ -106,6 +106,11 @@ func TestSchema(t *testing.T) { testFile: ".woodpecker/test-array-syntax.yaml", fail: false, }, + { + name: "Step DAG syntax", + testFile: ".woodpecker/test-dag.yaml", + fail: false, + }, } for _, tt := range testTable {