Skip to content

Commit

Permalink
tests(nesting): added nested failing stages to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Aug 7, 2023
1 parent 45377c9 commit 8e7ccac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tests/failing/failing-nested-stage/nested/togomak.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
togomak {
version = 1
}
stage "example" {
name = "example"
script = "echo hello world && exit 1"
}
19 changes: 19 additions & 0 deletions tests/tests/failing/failing-nested-stage/togomak.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
togomak {
version = 1
}

macro "nested" {
source = "./nested/togomak.hcl"
}


stage "root_function" {
use {
macro = macro.nested
}
}

stage "another_function" {
depends_on = [stage.root_function]
script = "echo done"
}

0 comments on commit 8e7ccac

Please sign in to comment.