From 7ad0bc428717ca8dbfa322522e0730a362b28b14 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Sat, 18 Oct 2025 04:05:16 +0300 Subject: [PATCH] f --- .gitea/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6ee3237..4e52c50 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,7 +28,8 @@ jobs: dotnet tool install dotnet-sonarscanner --tool-path ~/.sonar/scanner - name: Install dotnet-coverage run: | - dotnet tool install --global dotnet-coverage + mkdir -p ~/.sonar/coverage + dotnet tool install dotnet-coverage --tool-path ~/.sonar/coverage - name: Restore dependencies run: dotnet restore --verbosity normal - name: Build and analyze @@ -44,6 +45,6 @@ jobs: echo "Building project..." dotnet build --verbosity normal --no-incremental echo "Collecting coverage..." - dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml" + ~/.sonar/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 }}" \ No newline at end of file