mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: try to = name and find file from root
This commit is contained in:
+2
-2
@@ -35,14 +35,14 @@ func main() {
|
||||
WithExec([]string{"go", "mod", "tidy"}).WithEnvVariable("CI", "true")
|
||||
|
||||
// run application tests
|
||||
out, err := runner.WithWorkdir("/src_d/src").WithExec([]string{"go", "test", "./cmd/utils", "./cmd/tui", "-coverprofile", "cover.out"}).
|
||||
out, err := runner.WithWorkdir("/src_d/src").WithExec([]string{"go", "test", "./cmd/utils", "./cmd/tui", "-coverprofile=cover.out"}).
|
||||
Stderr(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println(out)
|
||||
|
||||
out, err = runner.WithExec([]string{"ls"}).Stdout(ctx)
|
||||
out, err = runner.WithExec([]string{"find", "/", "-name", "cover.out"}).Stdout(ctx)
|
||||
fmt.Println(out)
|
||||
|
||||
// export the coverage report
|
||||
|
||||
Reference in New Issue
Block a user