mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: try and add env var earlier in the workflow
This commit is contained in:
@@ -35,10 +35,11 @@ func main() {
|
||||
// set the working directory in the container
|
||||
// install application dependencies
|
||||
runner := source.WithWorkdir("/src_d/src/").
|
||||
WithExec([]string{"go", "mod", "tidy"})
|
||||
WithExec([]string{"go", "mod", "tidy"}).WithEnvVariable("CI", "true")
|
||||
|
||||
// run application tests
|
||||
test := runner.WithWorkdir("/src_d/src/").WithExec([]string{"go", "test", "./..."}).WithEnvVariable("CI", "true")
|
||||
test := runner.WithWorkdir("/src_d/src/").WithExec([]string{"go", "test", "./..."})
|
||||
//.WithEnvVariable("CI", "true")
|
||||
|
||||
buildDir := test.Directory("/src/")
|
||||
|
||||
@@ -50,7 +51,8 @@ func main() {
|
||||
build := test.
|
||||
WithEnvVariable("GOOS", goos).
|
||||
WithEnvVariable("GOARCH", goarch).
|
||||
WithExec([]string{"go", "build", "-o", filename}).WithEnvVariable("CI", "true")
|
||||
WithExec([]string{"go", "build", "-o", filename})
|
||||
//.WithEnvVariable("CI", "true")
|
||||
|
||||
buildDir = buildDir.WithDirectory(path, build.Directory(path))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user