ci: fix dagger ci problems and failing tests

This commit is contained in:
Slug-Boi
2024-10-28 18:43:38 +01:00
parent aa3ec23277
commit 63fd1f13f9
5 changed files with 153 additions and 17 deletions
+2 -2
View File
@@ -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)