From 32530f2221ac57a7004f0b6241473fa29fb50225 Mon Sep 17 00:00:00 2001 From: Chris Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> Date: Sat, 2 May 2026 12:20:59 -0400 Subject: [PATCH] Gracefully skip macOS coverage gate when no coverage exists Stage 3 macOS hard-failed when no coverage report existed, but the preceding step already gracefully skips report generation in that case. This template pack repo has no tests, so no coverage is expected. Now matches the Linux/Windows stages which guard their coverage gate on has-coverage output. Changed exit 1 to exit 0 with informational message so the gate skips cleanly instead of failing the build. Blocks dependabot PRs #149, #150. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8eb759a..61f1dac 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1214,8 +1214,8 @@ jobs: - name: Enforce 90% coverage threshold run: | if [ ! -f "CoverageReport/Summary.txt" ]; then - echo "❌ Coverage report not generated!" - exit 1 + echo "ℹ️ No coverage report found - skipping coverage gate (no tests in this repo)" + exit 0 fi echo "Coverage Summary:"