fix(ci): serialize authoritative coverage measurement

This commit is contained in:
修雨
2026-07-15 23:56:31 +08:00
parent 42627e769e
commit 0bd767a3fe
+2 -1
View File
@@ -234,7 +234,7 @@ jobs:
- name: Run current and baseline unit tests with coverage
run: |
set -eu
go test -count=1 -coverprofile=coverage.txt -covermode=atomic ./ ./cmd/... ./internal/... ./skills/...
go test -count=1 -p 1 -coverprofile=coverage.txt -covermode=atomic ./ ./cmd/... ./internal/... ./skills/...
go test -count=1 -coverprofile=coverage-policy.txt -covermode=atomic ./pkg/... ./scripts/policy/...
go test -count=1 \
-run '^(TestAllShortcuts|TestCrossPlatformCoverage)' \
@@ -253,6 +253,7 @@ jobs:
(
cd "$base_worktree"
go test -count=1 \
-p 1 \
-coverprofile="$GITHUB_WORKSPACE/coverage-base.txt" \
-covermode=atomic \
./ ./cmd/... ./internal/... ./skills/...