ci: simpler workaround for ci test
This commit is contained in:
parent
2d2631c71f
commit
dec9cf2cd1
2
Makefile
2
Makefile
|
@ -31,4 +31,4 @@ test:
|
|||
ci-test:
|
||||
./scripts/prepare_test_repos.sh $(TMP_DIR)
|
||||
./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '2i \ \ \"sandboxExecServer\": \"172.17.0.1:5051\",' conf.json"
|
||||
GITHUB_ACTIONS="test" go test -coverprofile cover.out -v ./...
|
||||
GITHUB_ACTOR="" go test -coverprofile cover.out -v ./...
|
||||
|
|
|
@ -14,11 +14,6 @@ import (
|
|||
)
|
||||
|
||||
func Run(conf *conf.Conf) error {
|
||||
actions := os.Getenv("GITHUB_ACTIONS")
|
||||
if actions != "true" {
|
||||
slog.Info("teapot exit", "GITHUB_ACTIONS", actions)
|
||||
return nil
|
||||
}
|
||||
os.Setenv("LOG_FILE_PATH", conf.Teapot.LogPath)
|
||||
os.Setenv("_TYPER_STANDARD_TRACEBACK", "1")
|
||||
sha := os.Getenv("GITHUB_SHA")
|
||||
|
|
Loading…
Reference in New Issue
Block a user