Excluding migrations files from analysis

This commit is contained in:
2025-02-21 13:55:34 +01:00
parent 810f23f814
commit 5ef25d601f

View File

@@ -48,7 +48,7 @@ jobs:
MONGO_DB_SERVER: ${{ secrets.MONGO_DB_SERVER }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"csimonapastore_BasicDotnetTemplate" /o:"csimonapastore-github" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
.\.sonar\scanner\dotnet-sonarscanner begin /k:"csimonapastore_BasicDotnetTemplate" /o:"csimonapastore-github" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.exclusions="**/Migrations/**.cs"
dotnet restore
dotnet build --no-incremental
dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"