From 7c2f67e39b8bcbf61f371ecc257521de310f4e8a Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Thu, 10 Apr 2025 13:22:44 +0200 Subject: [PATCH] ci: try to = name and find file from root --- ci/test_on_push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/test_on_push.go b/ci/test_on_push.go index 01d96de..3ea22a0 100644 --- a/ci/test_on_push.go +++ b/ci/test_on_push.go @@ -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