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

Commit

Permalink
docs: add an example
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 14, 2020
1 parent 6842a8e commit 150b580
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/import_phases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
phases:
- name: main
tasks:
- name: hello
command:
command: echo hello
- import: phases.yaml
4 changes: 4 additions & 0 deletions examples/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func TestBuildflow(t *testing.T) {
title: "command's standard input",
file: "stdin.yaml",
},
{
title: "import phases from a file",
file: "import_phases.yaml",
},
{
title: "buildflow run fails as expected",
file: "fail.yaml",
Expand Down
11 changes: 11 additions & 0 deletions examples/phases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: main 2
tasks:
- name: hello
command:
command: echo "main 2"
- name: main
tasks:
- name: main 3
command:
command: echo "main 3"

0 comments on commit 150b580

Please sign in to comment.