From ac22153aa78ecc7fc535258482c9f83e9a7c4fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Eduardo=20Garc=C3=ADa=20M=C3=A1rquez?= Date: Fri, 9 Jan 2026 08:47:32 -0500 Subject: [PATCH] fix(ci): use 'which' instead of 'command -v' for dotnet check Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ==="