From 1d377c871e1507e2c71083727a88632c89738225 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 17 Oct 2025 06:53:59 +0300 Subject: [PATCH] fx --- .gitea/workflows/build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 05a3ec7..76d6f32 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,11 +12,6 @@ jobs: env: PATH: ${{ env.PATH }}:/root/.dotnet/tools steps: - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: 'zulu' # Alternative distribution options are available. - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -32,7 +27,6 @@ jobs: run: | dotnet tool install --global coverlet.console echo "Adding .dotnet/tools to PATH..." - echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.bashrc export PATH="$PATH:/root/.dotnet/tools" echo "Coverlet installed at:" which coverlet || echo "Coverlet not found, trying full path..." @@ -58,9 +52,12 @@ jobs: - name: Run tests with coverage run: | echo "Running tests with coverage..." + echo "Current directory: $(pwd)" echo "PATH: $PATH" echo "Coverlet location:" which coverlet || echo "Coverlet not found in PATH" + echo "Checking test project structure..." + find . -name "*.Tests.dll" -type f | head -5 echo "Trying to run coverlet..." if coverlet ./ChatBot.Tests/bin/Debug/net9.0/ChatBot.Tests.dll --target "dotnet" --targetargs "test --no-build" -f=opencover -o="coverage.xml"; then echo "Coverlet succeeded"