feat: add caching for .NET SDK and optimize NuGet package caching in CI workflow

This commit is contained in:
mirage
2026-03-31 13:51:37 +02:00
parent 6fe21ae8fb
commit 0522c2127f

View File

@@ -20,6 +20,14 @@ jobs:
echo "Updated appsettings.json:"
cat $APPSETTINGS_PATH
- name: Cache .NET SDK
uses: actions/cache@v3
with:
path: |
~/.dotnet
/usr/share/dotnet
key: ${{ runner.os }}-dotnet-10.0.x
- name: Cache NuGet packages
uses: actions/cache@v3
with:
@@ -28,16 +36,6 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
- name: Cache build output
uses: actions/cache@v3
with:
path: |
**/bin
**/obj
key: ${{ runner.os }}-build-${{ hashFiles('**/*.cs', '**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
@@ -131,13 +129,6 @@ jobs:
$FORMATTED_REPORT
---
**Seuil**: 1000ms
**Statistiques**:
- ✅ Endpoints rapides: $(grep -c "^\[OK\]" /tmp/webzine_endpoint_output.txt 2>/dev/null || echo 0)
- ⚠️ Endpoints lents (>1000ms): $SLOW_COUNT
- ❌ Endpoints en échec: $FAILED_COUNT
**Vérifié par**: Workflow PR Endpoint Performance
EOF
)