This commit is contained in:
@@ -52,3 +52,23 @@ jobs:
|
|||||||
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./coverage/ /p:Exclude="[*]*.Migrations.*" /p:ExcludeByFile="**/Migrations/*.cs"
|
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./coverage/ /p:Exclude="[*]*.Migrations.*" /p:ExcludeByFile="**/Migrations/*.cs"
|
||||||
echo "Ending SonarQube analysis..."
|
echo "Ending SonarQube analysis..."
|
||||||
~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
|
~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
|
||||||
|
- name: Wait for Quality Gate
|
||||||
|
run: |
|
||||||
|
echo "Waiting for SonarQube Quality Gate result..."
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
# Get Quality Gate status
|
||||||
|
QUALITY_GATE_STATUS=$(curl -s -u "${{ secrets.SONAR_TOKEN }}:" \
|
||||||
|
"${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=ChatBot" \
|
||||||
|
| grep -o '"status":"[^"]*"' | cut -d'"' -f4)
|
||||||
|
|
||||||
|
echo "Quality Gate Status: $QUALITY_GATE_STATUS"
|
||||||
|
|
||||||
|
if [ "$QUALITY_GATE_STATUS" != "OK" ]; then
|
||||||
|
echo "❌ Quality Gate failed! Status: $QUALITY_GATE_STATUS"
|
||||||
|
echo "Please check the SonarQube dashboard for details:"
|
||||||
|
echo "${{ secrets.SONAR_HOST_URL }}/dashboard?id=ChatBot"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "✅ Quality Gate passed!"
|
||||||
|
fi
|
||||||
@@ -4,6 +4,12 @@
|
|||||||
[](LICENSE.txt)
|
[](LICENSE.txt)
|
||||||
[](https://www.postgresql.org/)
|
[](https://www.postgresql.org/)
|
||||||
|
|
||||||
|
[](https://sonarqube.api.home/dashboard?id=ChatBot)
|
||||||
|
[](https://sonarqube.api.home/dashboard?id=ChatBot)
|
||||||
|
[](https://sonarqube.api.home/dashboard?id=ChatBot)
|
||||||
|
[](https://sonarqube.api.home/dashboard?id=ChatBot)
|
||||||
|
[](https://sonarqube.api.home/dashboard?id=ChatBot)
|
||||||
|
|
||||||
Интеллектуальный Telegram-бот на базе локальных AI моделей (Ollama), построенный на .NET 9 с использованием Clean Architecture.
|
Интеллектуальный Telegram-бот на базе локальных AI моделей (Ollama), построенный на .NET 9 с использованием Clean Architecture.
|
||||||
|
|
||||||
## ✨ Основные возможности
|
## ✨ Основные возможности
|
||||||
|
|||||||
Reference in New Issue
Block a user