mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 19:35:14 +00:00
Add schema test for depends_on (#3205)
This commit is contained in:
parent
7eff20d1b7
commit
6a6cb094fb
2 changed files with 27 additions and 0 deletions
|
@ -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",
|
||||
fail: false,
|
||||
},
|
||||
{
|
||||
name: "Step DAG syntax",
|
||||
testFile: ".woodpecker/test-dag.yaml",
|
||||
fail: false,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range testTable {
|
||||
|
|
Loading…
Reference in a new issue