fix(ci): use 'which' instead of 'command -v' for dotnet check
CI/CD Pipeline / smoke-tests (push) Failing after 49s Details
CI/CD Pipeline / e2e-tests (push) Has been skipped Details
CI/CD Pipeline / rollback (push) Has been skipped Details
CI/CD Pipeline / deploy (push) Successful in 4m1s Details

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andrés Eduardo García Márquez 2026-01-09 08:47:32 -05:00
parent fdc2cfa43d
commit ac22153aa7
1 changed files with 4 additions and 4 deletions

View File

@ -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 ==="