From 4c757e803e29c410dff63b54310f44352c561186 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:46:36 +0000 Subject: [PATCH] Add CI check that pkg/cli and pkg/console unit tests execute Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/cgo.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/cgo.yml b/.github/workflows/cgo.yml index 65aa7e83fec..443b85a3db6 100644 --- a/.github/workflows/cgo.yml +++ b/.github/workflows/cgo.yml @@ -164,6 +164,16 @@ jobs: # Generate coverage HTML report go tool cover -html=coverage.out -o coverage.html + - name: Validate pkg/cli and pkg/console tests executed + run: | + set -euo pipefail + for package in pkg/cli pkg/console; do + if ! grep -q "\"Action\":\"run\",\"Package\":\"github.com/github/gh-aw/${package}\"" test-result-unit.json; then + echo "Missing unit test execution records for ${package}" >&2 + exit 1 + fi + done + - name: Report test failures if: failure() && steps.run-unit-tests.outcome == 'failure' run: |