ci: simpler workaround for ci test
All checks were successful
submodules sync / sync (push) Successful in 41s
build / build (push) Successful in 1m23s
build / trigger-build-image (push) Successful in 8s

This commit is contained in:
张泊明518370910136 2024-10-29 22:11:03 -04:00
parent 2d2631c71f
commit dec9cf2cd1
GPG Key ID: D47306D7062CDA9D
2 changed files with 1 additions and 6 deletions

View File

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

View File

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