Files
links/scripts/ci/test-simple.sh
Andrey K. Choi e685b48997
Some checks failed
continuous-integration/drone/push Build is failing
pipeline fix
2025-11-02 06:41:29 +09:00

35 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Простая версия test.sh для базового тестирования
echo "🧪 Simple test check..."
# Проверка структуры тестов
echo "📋 Looking for test files:"
find . -name "*test*.py" -o -name "test_*.py" | head -5
find . -name "*.test.js" -o -name "*.test.ts" -o -name "*.spec.js" | head -5
# Проверка Django настроек
if [ -f backend/manage.py ]; then
echo "✅ Django manage.py found"
echo "🔍 Django project structure:"
ls -la backend/ | head -10
else
echo "⚠️ Django manage.py not found"
fi
# Проверка Next.js настроек
if [ -f frontend/linktree-frontend/next.config.ts ]; then
echo "✅ Next.js config found"
else
echo "⚠️ Next.js config not found"
fi
# Базовая проверка импортов Python
echo "🐍 Checking Python imports:"
python_test_files=$(find . -name "*test*.py" | head -2)
for file in $python_test_files; do
echo "Checking imports in: $file"
python -c "import ast; ast.parse(open('$file').read())" 2>/dev/null && echo "✅ OK" || echo "❌ Import error"
done
echo "✅ Simple test check completed"