ci: report test coverage
All checks were successful
build / build (push) Successful in 1m56s
build / build (pull_request) Successful in 1m55s
build / trigger-build-image (push) Has been skipped
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
张泊明518370910136 2026-08-02 04:42:19 -07:00
parent cde8a61ff0
commit 706f7c84f3
GPG Key ID: D47306D7062CDA9D

View File

@ -38,4 +38,5 @@ test: build
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_ACTOR="" go test -count=1 -v ./...
GITHUB_ACTOR="" go test -count=1 -v -coverpkg=./... -coverprofile=$(COVERAGE_FILE) ./...
go tool cover -func=$(COVERAGE_FILE) | tail -n 1