Skip to content

Commit

Permalink
#43. Try to fix upload code coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
skuill committed Dec 26, 2024
1 parent 4b1eddd commit 856011c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ jobs:
dotnet test Tests/LyricsScraperNET.UnitTest --configuration Release --collect:"XPlat Code Coverage" --results-directory ./TestResults
env:
COVERLET_OUTPUT_FORMAT: cobertura
- name: Debug Test Results
run: ls -R ./TestResults
- name: List Coverage Files
run: |
echo "Checking TestResults directory..."
ls -R ./TestResults
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: ./TestResults/**/coverage.cobertura.xml
files: ./TestResults/**/*.cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
# Temporarily switched off. There are errors during CI.
Expand Down

0 comments on commit 856011c

Please sign in to comment.