This commit is contained in:
Leonid Pershin
2025-10-18 04:01:53 +03:00
parent 33403b6511
commit e3b6175860
2 changed files with 3 additions and 101 deletions

View File

@@ -42,6 +42,8 @@ jobs:
echo "Installing SonarQube scanner..."
~/.sonar/scanner/dotnet-sonarscanner begin /k:"mrleo1nid_chatbot" /o:"mrleo1nid" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
echo "Building project..."
dotnet build --verbosity normal
dotnet build --verbosity normal --no-incremental
echo "Collecting coverage..."
dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
echo "Ending SonarQube analysis..."
~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"