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:
parent
7eff20d1b7
commit
6a6cb094fb
@ -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
|
@ -106,6 +106,11 @@ func TestSchema(t *testing.T) {
|
|||||||
testFile: ".woodpecker/test-array-syntax.yaml",
|
testFile: ".woodpecker/test-array-syntax.yaml",
|
||||||
fail: false,
|
fail: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Step DAG syntax",
|
||||||
|
testFile: ".woodpecker/test-dag.yaml",
|
||||||
|
fail: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tt := range testTable {
|
for _, tt := range testTable {
|
||||||
|
Loading…
Reference in New Issue
Block a user