1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

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 {