-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(turbine): JS build and run were mixed up and caused an erroneous …
…call during deploy (#441)
- Loading branch information
1 parent
71e2603
commit acf0566
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package turbinejs | ||
|
||
import "context" | ||
import ( | ||
"context" | ||
|
||
utils "github.com/meroxa/cli/cmd/meroxa/turbine" | ||
) | ||
|
||
// Run calls turbine-js to exercise the app. | ||
func (t *turbineJsCLI) Run(ctx context.Context) (err error) { | ||
_, err = t.Build(ctx, "", false) | ||
cmd := utils.RunTurbineJS(ctx, "test", t.appPath) | ||
stdOut, err := utils.RunCmdWithErrorDetection(ctx, cmd, t.logger) | ||
t.logger.Info(ctx, stdOut) | ||
return err | ||
} |