refactor(cmd/joj3)!: conf #51

Merged
张泊明518370910136 merged 11 commits from conf into master 2024-10-12 13:21:59 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b23c0894ea - Show all commits

View File

@ -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 ./...

View File

@ -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