byg/examples/test.go

35 lines
478 B
Go
Raw Permalink Normal View History

2022-10-29 21:00:43 +02:00
package examples
import (
"context"
"testing"
"git.front.kjuulh.io/kjuulh/byg"
)
func Test(t *testing.T) {
byg.New().
Step(
"fetch resources",
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
).
Step(
"build stuff",
byg.Step{
Execute: func(ctx byg.Context) error {
return nil
},
},
).Execute(context.Background())
}