From a72d7aeec3542ab80f0fc01028e9fcfae1940c60 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 17 Oct 2025 08:09:45 +0300 Subject: [PATCH] ww --- .gitea/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a9a6d69..2d5d625 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -22,43 +22,43 @@ jobs: PATH: ${{ env.PATH }}:/root/.dotnet/tools steps: - name: Checkout code - run: /bin/bash -c | + run: /bin/sh -c | echo "Checking out code..." echo "Current directory: $(pwd)" echo "Files in current directory:" ls -la - name: Setup .NET - run: /bin/bash -c | + run: /bin/sh -c | echo "Setting up .NET..." dotnet --version echo "Dotnet is available" - name: Restore dependencies - run: /bin/bash -c "dotnet restore" + run: /bin/sh -c "dotnet restore" - name: Install dotnet-coverage - run: /bin/bash -c | + run: /bin/sh -c | dotnet tool install --global dotnet-coverage echo "Adding .dotnet/tools to PATH..." - echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.bashrc + echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.profile export PATH="$PATH:/root/.dotnet/tools" echo "dotnet-coverage location:" which dotnet-coverage || echo "dotnet-coverage not found in PATH" ls -la /root/.dotnet/tools/ | grep dotnet-coverage || echo "No dotnet-coverage in tools directory" - name: Install SonarCloud Scanner - run: /bin/bash -c "dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner" + run: /bin/sh -c "dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner" - name: Begin SonarCloud analysis - run: /bin/bash -c "./.sonar/scanner/dotnet-sonarscanner begin /k:\"${{ env.SONAR_PROJECT_KEY }}\" /o:\"${{ env.SONAR_ORG }}\" /d:sonar.token=\"${{ secrets.SONAR_TOKEN }}\" /d:sonar.host.url=\"${{ env.SONAR_HOST_URL }}\" /d:sonar.cs.vscoveragexml.reportsPaths=\"coverage.xml\"" + run: /bin/sh -c "./.sonar/scanner/dotnet-sonarscanner begin /k:\"${{ env.SONAR_PROJECT_KEY }}\" /o:\"${{ env.SONAR_ORG }}\" /d:sonar.token=\"${{ secrets.SONAR_TOKEN }}\" /d:sonar.host.url=\"${{ env.SONAR_HOST_URL }}\" /d:sonar.cs.vscoveragexml.reportsPaths=\"coverage.xml\"" env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Build - run: /bin/bash -c "dotnet build --no-incremental" + run: /bin/sh -c "dotnet build --no-incremental" - name: Run tests and collect coverage - run: /bin/bash -c | + run: /bin/sh -c | echo "Running tests and collecting coverage..." echo "PATH: $PATH" echo "Trying dotnet-coverage from PATH..." @@ -76,12 +76,12 @@ jobs: fi - name: List files for debug - run: /bin/bash -c "ls -la" + run: /bin/sh -c "ls -la" - name: Print coverage.xml for debug - run: /bin/bash -c "cat coverage.xml" + run: /bin/sh -c "cat coverage.xml" - name: End SonarCloud analysis - run: /bin/bash -c "./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token=\"${{ secrets.SONAR_TOKEN }}\"" + run: /bin/sh -c "./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token=\"${{ secrets.SONAR_TOKEN }}\"" env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file