chore: log GITHUB_ACTIONS
All checks were successful
build / build (push) Successful in 1m5s
build / build (pull_request) Successful in 1m5s
build / trigger-build-image (push) Has been skipped
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
张泊明518370910136 2024-10-12 01:05:09 -04:00
parent 01133d4dff
commit b23c0894ea
GPG Key ID: D47306D7062CDA9D
2 changed files with 2 additions and 2 deletions

View File

@ -30,5 +30,4 @@ test:
ci-test: ci-test:
./scripts/prepare_test_repos.sh $(TMP_DIR) ./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" ./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '2i \ \ \"sandboxExecServer\": \"172.17.0.1:5051\",' conf.json"
export GITHUB_ACTIONS="test" GITHUB_ACTIONS="test" go test -coverprofile cover.out -v ./...
go test -coverprofile cover.out -v ./...

View File

@ -13,6 +13,7 @@ import (
func Run(conf conf.Conf) error { func Run(conf conf.Conf) error {
actions := os.Getenv("GITHUB_ACTIONS") actions := os.Getenv("GITHUB_ACTIONS")
slog.Info("teapot start", "GITHUB_ACTIONS", actions)
if actions != "true" { if actions != "true" {
slog.Info("teapot exit", "GITHUB_ACTIONS", actions) slog.Info("teapot exit", "GITHUB_ACTIONS", actions)
return nil return nil