From b23c0894ea2c24903b80641189083516fb8a37ce Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 12 Oct 2024 01:05:09 -0400 Subject: [PATCH] chore: log GITHUB_ACTIONS --- Makefile | 3 +-- cmd/joj3/teapot/main.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9a81b2..67c1186 100644 --- a/Makefile +++ b/Makefile @@ -30,5 +30,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" - export GITHUB_ACTIONS="test" - go test -coverprofile cover.out -v ./... + GITHUB_ACTIONS="test" go test -coverprofile cover.out -v ./... diff --git a/cmd/joj3/teapot/main.go b/cmd/joj3/teapot/main.go index 3fb6003..3bdee79 100644 --- a/cmd/joj3/teapot/main.go +++ b/cmd/joj3/teapot/main.go @@ -13,6 +13,7 @@ import ( func Run(conf conf.Conf) error { actions := os.Getenv("GITHUB_ACTIONS") + slog.Info("teapot start", "GITHUB_ACTIONS", actions) if actions != "true" { slog.Info("teapot exit", "GITHUB_ACTIONS", actions) return nil