fx
This commit is contained in:
@@ -12,11 +12,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PATH: ${{ env.PATH }}:/root/.dotnet/tools
|
PATH: ${{ env.PATH }}:/root/.dotnet/tools
|
||||||
steps:
|
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
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
@@ -32,7 +27,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dotnet tool install --global coverlet.console
|
dotnet tool install --global coverlet.console
|
||||||
echo "Adding .dotnet/tools to PATH..."
|
echo "Adding .dotnet/tools to PATH..."
|
||||||
echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.bashrc
|
|
||||||
export PATH="$PATH:/root/.dotnet/tools"
|
export PATH="$PATH:/root/.dotnet/tools"
|
||||||
echo "Coverlet installed at:"
|
echo "Coverlet installed at:"
|
||||||
which coverlet || echo "Coverlet not found, trying full path..."
|
which coverlet || echo "Coverlet not found, trying full path..."
|
||||||
@@ -58,9 +52,12 @@ jobs:
|
|||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: |
|
run: |
|
||||||
echo "Running tests with coverage..."
|
echo "Running tests with coverage..."
|
||||||
|
echo "Current directory: $(pwd)"
|
||||||
echo "PATH: $PATH"
|
echo "PATH: $PATH"
|
||||||
echo "Coverlet location:"
|
echo "Coverlet location:"
|
||||||
which coverlet || echo "Coverlet not found in PATH"
|
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..."
|
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
|
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"
|
echo "Coverlet succeeded"
|
||||||
|
|||||||
Reference in New Issue
Block a user