fix(ci): use 'which' instead of 'command -v' for dotnet check
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fdc2cfa43d
commit
ac22153aa7
|
|
@ -31,14 +31,14 @@ jobs:
|
||||||
git fetch origin main
|
git fetch origin main
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
echo "=== Running Backend Tests ==="
|
echo "=== Checking for dotnet ==="
|
||||||
if command -v dotnet &> /dev/null; then
|
if which dotnet > /dev/null 2>&1; then
|
||||||
|
echo "Running backend tests..."
|
||||||
dotnet test tests/Domain.Tests --verbosity minimal
|
dotnet test tests/Domain.Tests --verbosity minimal
|
||||||
dotnet test tests/Application.Tests --verbosity minimal
|
dotnet test tests/Application.Tests --verbosity minimal
|
||||||
dotnet test tests/Integration.Tests --verbosity minimal
|
dotnet test tests/Integration.Tests --verbosity minimal
|
||||||
else
|
else
|
||||||
echo "WARN: dotnet not installed on server - skipping tests"
|
echo "WARN: dotnet not installed - skipping tests"
|
||||||
echo "Tests should be run locally before push"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "=== Building Docker images ==="
|
echo "=== Building Docker images ==="
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue