Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# CI restores/builds/tests CritterCab.slnx explicitly (no glob), so the
# slnx is the single source of truth for what CI sees. A *.Tests.csproj
# added to disk but not hand-added to the slnx would silently never run
# and the check would still go green. This guard fails the build on that
# drift, keeping test discovery omission-proof as new services land.
- name: Verify solution completeness
shell: bash
run: |
missing=0
while IFS= read -r proj; do
rel="${proj#./}"
if ! grep -qF "$rel" CritterCab.slnx; then
echo "::error::Project '$rel' exists on disk but is not referenced in CritterCab.slnx"
missing=1
fi
done < <(find . -name '*.csproj')
if [ "$missing" -eq 0 ]; then
echo "All projects on disk are referenced in CritterCab.slnx."
fi
exit $missing

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
Expand Down
Loading