Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Aug 6, 2024
1 parent 89c732d commit aff8176
Show file tree
Hide file tree
Showing 28 changed files with 378 additions and 553 deletions.
11 changes: 11 additions & 0 deletions examples/foreach.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
- name: foreach
foreach: "[1, 2, 3]"
command: sh
output: "foreach-$1.txt"
script: |
echo "Hello, world! $1"
- name: merge
command: sh
script: |
cat foreach-*.txt
1 change: 1 addition & 0 deletions internal/dag/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ var (
errStepCommandMustBeArrayOrString = errors.New(
"step command must be an array of strings or a string",
)
errInvalidParamValue = errors.New("invalid parameter value")
errCallFunctionNotFound = errors.New(
"call must specify a functions that exists",
)
Expand Down
Loading

0 comments on commit aff8176

Please sign in to comment.