From a0f2eaa8d75c11c1034e7cf3b23ef696d0904d05 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Wed, 14 Oct 2020 23:06:04 +0900 Subject: [PATCH] test: add test --- examples/main_test.go | 8 ++++++++ examples/task_dependency.yaml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 examples/task_dependency.yaml diff --git a/examples/main_test.go b/examples/main_test.go index dd5b4c7..40eabb8 100644 --- a/examples/main_test.go +++ b/examples/main_test.go @@ -28,6 +28,14 @@ func TestBuildflow(t *testing.T) { Err: "", }, }, + { + title: "the task bar depends on the task foo", + file: "task_dependency.yaml", + exp: icmd.Expected{ + ExitCode: 0, + Err: "", + }, + }, } for _, d := range data { d := d diff --git a/examples/task_dependency.yaml b/examples/task_dependency.yaml new file mode 100644 index 0000000..c4dd509 --- /dev/null +++ b/examples/task_dependency.yaml @@ -0,0 +1,14 @@ +--- +phases: +- name: main + tasks: + - name: foo + command: + command: | + echo foo + - name: bar + command: + command: | + echo bar + dependency: + - foo