Add logs for issues in Actions
This commit is contained in:
parent
99307d1576
commit
3abca99b0c
1 changed files with 12 additions and 4 deletions
|
@ -139,18 +139,26 @@ oidc:
|
||||||
s.FailNow(fmt.Sprintf("Could not determine current path: %s", err), "")
|
s.FailNow(fmt.Sprintf("Could not determine current path: %s", err), "")
|
||||||
}
|
}
|
||||||
|
|
||||||
baseConfig, _ := os.ReadFile("integration_test/etc_oidc/base_config.yaml")
|
baseConfig, err := os.ReadFile(
|
||||||
|
path.Join(currentPath, "integration_test/etc_oidc/base_config.yaml"))
|
||||||
|
if err != nil {
|
||||||
|
s.FailNow(fmt.Sprintf("Could not read base config: %s", err), "")
|
||||||
|
}
|
||||||
config := string(baseConfig) + oidcCfg
|
config := string(baseConfig) + oidcCfg
|
||||||
|
|
||||||
|
log.Println(config)
|
||||||
|
|
||||||
configPath := path.Join(currentPath, "integration_test/etc_oidc/config.yaml")
|
configPath := path.Join(currentPath, "integration_test/etc_oidc/config.yaml")
|
||||||
err = os.WriteFile(configPath, []byte(config), 0644)
|
err = os.WriteFile(configPath, []byte(config), 0644)
|
||||||
|
if err != nil {
|
||||||
|
s.FailNow(fmt.Sprintf("Could not write config: %s", err), "")
|
||||||
|
}
|
||||||
|
|
||||||
headscaleOptions := &dockertest.RunOptions{
|
headscaleOptions := &dockertest.RunOptions{
|
||||||
Name: oidcHeadscaleHostname,
|
Name: oidcHeadscaleHostname,
|
||||||
Mounts: []string{
|
Mounts: []string{
|
||||||
fmt.Sprintf(
|
path.Join(currentPath,
|
||||||
"%s/integration_test/etc_oidc:/etc/headscale",
|
"integration_test/etc_oidc:/etc/headscale",
|
||||||
currentPath,
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
Cmd: []string{"headscale", "serve"},
|
Cmd: []string{"headscale", "serve"},
|
||||||
|
|
Loading…
Reference in a new issue