From 9eafe25843c6fab8ca35735d9a75541c504e7d3c Mon Sep 17 00:00:00 2001 From: Dieter Hauck Date: Mon, 29 Jun 2026 12:57:33 +0200 Subject: [PATCH] pipeline aktualisiert --- .gitea/workflows/sonarqube.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index e9a22b6..5cbf788 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -10,13 +10,27 @@ on: jobs: sonarqube: name: SonarQube Trigger - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: fetch-depth: 0 # Disables shallow clone for more accurate blame/analysis data + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '10.0.x' + + - name: Restore Dependencies + run: dotnet restore Dotnet.Samples.AspNetCore.WebApi.sln + + - name: Build Solution + run: dotnet build Dotnet.Samples.AspNetCore.WebApi.sln --no-restore + + - name : Run Tests + run: dotnet test Dotnet.Samples.AspNetCore.WebApi.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults + - name: Run SonarQube Scanner uses: sonarsource/sonarqube-scan-action@v6 with: