Skip to content

Commit

Permalink
SIANXSVC-1214: Replace codecov with codeclimate (#22)
Browse files Browse the repository at this point in the history
This also changes the type of the coverage format to cobertura, as the
opencover format doesn't seem to be supported.
  • Loading branch information
nachtjasmin authored Mar 11, 2024
1 parent 29f8675 commit abaf195
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ jobs:
- run: dotnet restore

- name: Run tests with coverage
run: dotnet test --no-restore --collect:"XPlat Code Coverage" /p:CoverletOutputFormat=opencover --logger trx --results-directory "test-results"
run: >
dotnet test
--no-restore
--collect:"XPlat Code Coverage"
/p:CoverletOutputFormat=cobertura
--logger trx
--results-directory "test-results"
--
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.ExcludeByFile="**/*.g.cs"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Upload coverage to Codeclimate
uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: "test-results/**/coverage.cobertura.xml:cobertura"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ fabric.properties
# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,visualstudiocode,intellij+all
*.DotSettings.user
TestResults/
/test-results/
*.nupkg
*.snupkg
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dotnet-e5e
==========
[![](https://img.shields.io/nuget/v/Anexia.E5E "NuGet version badge")](https://www.nuget.org/packages/Anexia.E5E)
[![](https://github.com/anexia/dotnet-e5e/actions/workflows/test.yml/badge.svg?branch=main "Test status")](https://github.com/anexia/dotnet-e5e/actions/workflows/test.yml)
[![Test Coverage](https://api.codeclimate.com/v1/badges/e632c5b96f75865745d9/test_coverage)](https://codeclimate.com/github/anexia/dotnet-e5e/test_coverage)

`dotnet-e5e` is a client library for Anexia e5e - our *Functions as a Service* offering.
With our client library, it's easy to build functions that can scale indefinitely!
Expand Down

0 comments on commit abaf195

Please sign in to comment.