ci: try to = name and find file from root

This commit is contained in:
Slug-Boi
2025-04-10 13:22:44 +02:00
parent 940576eb1d
commit 7c2f67e39b
+2 -2
View File
@@ -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