Skip to content

Commit

Permalink
#43. Added code coverage in ci/cd github action
Browse files Browse the repository at this point in the history
  • Loading branch information
skuill committed Dec 26, 2024
1 parent a07340f commit 1447ebd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ jobs:
run: dotnet format --verify-no-changes --exclude *\xunit*\*
- name: Build
run: dotnet build --configuration Release --verbosity minimal
- name: Test (Unit)
run: dotnet test Tests/LyricsScraperNET.UnitTest
- name: Test (Unit) with Coverage
run: |
dotnet test --configuration Release --collect:"XPlat Code Coverage" --results-directory ./TestResults
env:
COVERLET_OUTPUT_FORMAT: cobertura
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./TestResults/**/coverage.cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
# Temporarily switched off. There are errors during CI.
# - name: Test (Integration)
# run: dotnet test Tests/LyricsScraperNET.IntegrationTest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI/CD LyricsScraperNET](https://github.com/skuill/LyricsScraperNET/actions/workflows/cicd.yaml/badge.svg)](https://github.com/skuill/LyricsScraperNET/actions/workflows/cicd.yaml)
[![NuGet](https://img.shields.io/nuget/vpre/LyricsScraperNET?label=NuGet)](https://www.nuget.org/packages/LyricsScraperNET/)
[![NuGet Downloads](https://img.shields.io/nuget/dt/LyricsScraperNET?label=Downloads)](https://www.nuget.org/packages/LyricsScraperNET/)
[![codecov](https://codecov.io/github/skuill/LyricsScraperNET/graph/badge.svg?token=4WVKKT969S)](https://codecov.io/github/skuill/LyricsScraperNET)
[![License](https://img.shields.io/github/license/skuill/LyricsScraperNET)](./LICENSE)

**LyricsScraperNET** is a versatile .NET library that provides an API for searching song lyrics from various external providers.
Expand Down

0 comments on commit 1447ebd

Please sign in to comment.