fix
All checks were successful
SonarQube / Build and analyze (push) Successful in 3m31s

This commit is contained in:
Leonid Pershin
2025-10-21 03:50:42 +03:00
parent dab86d1c81
commit 800a3e97eb
4 changed files with 63 additions and 42 deletions

View File

@@ -37,7 +37,15 @@ jobs:
echo "Listing files:"
ls -la
echo "Starting SonarQube scanner..."
~/.sonar/scanner/dotnet-sonarscanner begin /k:"mrleo1nid_chatbot" /o:"mrleo1nid" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.coverage.exclusions="**/Migrations/**/*.cs,**/*ModelSnapshot.cs"
~/.sonar/scanner/dotnet-sonarscanner begin \
/k:"mrleo1nid_chatbot" \
/o:"mrleo1nid" \
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" \
/d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" \
/d:sonar.coverage.exclusions="**/Migrations/**,**/Migrations/*.cs,**/*ModelSnapshot.cs" \
/d:sonar.exclusions="**/Migrations/**,**/obj/**,**/bin/**" \
/d:sonar.sources="ChatBot/" \
/d:sonar.tests="ChatBot.Tests/"
echo "Building project..."
dotnet build --verbosity normal --no-incremental
echo "Running tests with coverage..."