Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 14, 2020
1 parent 5cb576c commit a0f2eaa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions examples/task_dependency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
phases:
- name: main
tasks:
- name: foo
command:
command: |
echo foo
- name: bar
command:
command: |
echo bar
dependency:
- foo

0 comments on commit a0f2eaa

Please sign in to comment.