diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 076f9cb..fed1e13 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 ==="