fx
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user