Skip to content

Commit

Permalink
add debug to test with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
houstonhaynes committed Feb 15, 2025
1 parent f91b710 commit 7ae0551
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-test-docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,20 @@ jobs:
run: |
mkdir -p coverage
dotnet test /p:CollectCoverage=true /p:CoverletOutput="$(pwd)/coverage/" /p:CoverletOutputFormat=opencover --configuration Release --no-build --verbosity normal
# Debug steps
echo "Coverage file contents:"
cat coverage/coverage.opencover.xml | head -n 20
echo "File size:"
ls -l coverage/coverage.opencover.xml
echo "File permissions:"
stat coverage/coverage.opencover.xml
- name: Generate coverage report
run: |
dotnet tool install -g dotnet-reportgenerator-globaltool --version 4.8.12
reportgenerator -reports:"$(pwd)/coverage/coverage.opencover.xml" -targetdir:"$(pwd)/coverage/report" -reporttypes:Html
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage/coverage.opencover.xml
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
fail-on-error: false # Temporarily set to false for debugging
- name: Get git commit info
run: |
echo "GIT_COMMIT_AUTHOR=$(git log -1 --pretty=%cn)" >> $GITHUB_ENV
Expand Down

0 comments on commit 7ae0551

Please sign in to comment.