Add schema test for depends_on (#3205)

This commit is contained in:
6543 2024-01-15 08:54:27 +01:00 committed by GitHub
parent 7eff20d1b7
commit 6a6cb094fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -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

View file

@ -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 {