feat: simplifier le workflow de vérification des performances en supprimant des étapes inutiles

This commit is contained in:
mirage
2026-03-27 11:20:28 +01:00
parent cba93edc62
commit 57e9cd4c79
3 changed files with 1 additions and 133 deletions

View File

@@ -26,8 +26,7 @@ jobs:
run: |
dotnet test Webzine.Entity.Tests/Webzine.Entity.Tests.csproj \
--no-build \
--configuration Release \
--logger "console;verbosity=normal"
--configuration Release
- name: Start Webzine application
run: |
@@ -66,7 +65,6 @@ jobs:
REPO: ${{ gitea.repository }}
PR_NUMBER: ${{ gitea.event.pull_request.number }}
run: |
# Lire le rapport original
RAW_REPORT=$(cat /tmp/webzine_endpoint_output.txt 2>/dev/null || echo "Aucune sortie capturée.")
FAILED_COUNT="${{ steps.perf_test.outputs.failed }}"
@@ -91,27 +89,10 @@ jobs:
-e 's/^╔\(.*\)╗$/```\n╔\1╗/' \
-e 's/^╚\(.*\)╝$/╚\1╝\n```/')
if [ "${FAILED_COUNT:-0}" -gt 0 ]; then
HEADER="## ❌ Vérification des performances ÉCHOUÉE"
INTRO="${FAILED_COUNT} endpoint(s) ont dépassé 1 seconde ou retourné une erreur serveur."
STATUS="❌ ÉCHEC"
else
HEADER="## ✅ Vérification des performances RÉUSSIE"
INTRO="Tous les endpoints ont répondu en moins d'une seconde."
STATUS="✅ SUCCÈS"
fi
BODY=$(cat <<EOF
$HEADER
$INTRO
### Rapport complet des tests :
$FORMATTED_REPORT
---
**Statut**: $STATUS
**Seuil**: 1000ms
**Vérifié par**: Workflow PR Endpoint Performance
EOF