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 reset --hard origin/main
|
||||
|
||||
echo "=== Running Backend Tests ==="
|
||||
if command -v dotnet &> /dev/null; then
|
||||
echo "=== Checking for dotnet ==="
|
||||
if which dotnet > /dev/null 2>&1; then
|
||||
echo "Running backend tests..."
|
||||
dotnet test tests/Domain.Tests --verbosity minimal
|
||||
dotnet test tests/Application.Tests --verbosity minimal
|
||||
dotnet test tests/Integration.Tests --verbosity minimal
|
||||
else
|
||||
echo "WARN: dotnet not installed on server - skipping tests"
|
||||
echo "Tests should be run locally before push"
|
||||
echo "WARN: dotnet not installed - skipping tests"
|
||||
fi
|
||||
|
||||
echo "=== Building Docker images ==="
|
||||
|
|
|
|||
Loading…
Reference in New Issue