From dec9cf2cd15cdbae72ec3152ed3a0580fedae5b1 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 29 Oct 2024 22:11:03 -0400 Subject: [PATCH] ci: simpler workaround for ci test --- Makefile | 2 +- cmd/joj3/teapot/run.go | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1486ecb..a9125fe 100644 --- a/Makefile +++ b/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 ./... diff --git a/cmd/joj3/teapot/run.go b/cmd/joj3/teapot/run.go index 767c7a7..1cf51a7 100644 --- a/cmd/joj3/teapot/run.go +++ b/cmd/joj3/teapot/run.go @@ -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")