Skip to content

Commit

Permalink
Update unit-tests-code-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
taorodrigueswork authored Jul 21, 2023
1 parent c9ff15a commit b08c5c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/unit-tests-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet run --environment Development
dotnet-sonarscanner begin /k:"taorodrigueswork_rest-api" /o:"taorodrigueswork" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build ./API
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*]Persistence.Migrations.*" -l trx ./API
ASPNETCORE_ENVIRONMENT=Development dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*]Persistence.Migrations.*" -l trx ./API
dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

0 comments on commit b08c5c8

Please sign in to comment.