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
29 changes: 22 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,29 @@ jobs:
run: dotnet build --no-restore

- name: Test
run: dotnet test -c Release -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
run: |
# Use coverlet.msbuild to produce cobertura files under each test project's TestResults directory
dotnet test -c Release --no-build \
/p:CollectCoverage=true \
/p:CoverletOutput=TestResults/coverage.cobertura.xml \
/p:CoverletOutputFormat=cobertura

- name: Show coverage files (debug)
run: |
echo "Coverage files found:"
find . -type f -name "coverage.cobertura.xml" -print || true
find . -type f -name "*-linux-net11.0-report.html" -print || true
echo "Ogma3.Tests output tree:"
ls -R Ogma3.Tests/bin/Release || true
echo "Utils.Tests output tree:"
ls -R Utils.Tests/bin/Release || true

- name: Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
with:
files: >
Ogma3.Tests/bin/Release/net11.0/TestResults/coverage.cobertura.xml
Ogma3.Tests/bin/Release/net11.0/TestResults/Ogma3.Tests-linux-net11.0-report.html
Utils.Tests/bin/Release/net11.0/TestResults/coverage.cobertura.xml
Utils.Tests/bin/Release/net11.0/TestResults/Utils.Tests-linux-net11.0-report.html

# Use globs so the uploader finds coverage files regardless of exact paths
files: |
**/TestResults/coverage.cobertura.xml
**/*-linux-net11.0-report.html
# Be tolerant in CI if no coverage files are present (optional)
fail-on-error: false
Loading