mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: fix dagger ci problems and failing tests
This commit is contained in:
+2
-2
@@ -32,10 +32,10 @@ func main() {
|
||||
// set the working directory in the container
|
||||
// install application dependencies
|
||||
runner := source.WithWorkdir("/src/src_code/go_src/").
|
||||
WithExec([]string{"go", "mod", "tidy"})
|
||||
WithExec([]string{"go", "mod", "tidy"}).WithEnvVariable("CI", "true")
|
||||
|
||||
// run application tests
|
||||
out, err := runner.WithWorkdir("/src/src_code/go_src").WithExec([]string{"go", "test", "./..."}).
|
||||
out, err := runner.WithWorkdir("/src/src_code/go_src/").WithExec([]string{"go", "test", "./..."}).
|
||||
Stderr(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user