From 50d28a1640864821098073f405e52e01e9614b0e Mon Sep 17 00:00:00 2001 From: bengizmo Date: Thu, 24 Jul 2025 15:00:44 -0300 Subject: [PATCH] fix: Exclude test directories from pre-deployment validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added exclusion for */tests/* and */playwright/* directories - Validation should only check production plugin files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/pre-deployment-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-deployment-check.sh b/scripts/pre-deployment-check.sh index 7078784c..9fda347c 100755 --- a/scripts/pre-deployment-check.sh +++ b/scripts/pre-deployment-check.sh @@ -66,7 +66,7 @@ while IFS= read -r -d '' file; do php_errors=true overall_success=false fi -done < <(find "$PROJECT_DIR" -name "*.php" -not -path "*/vendor/*" -not -path "*/node_modules/*" -not -path "*/archive/*" -not -path "*/wordpress-dev/*" -print0) +done < <(find "$PROJECT_DIR" -name "*.php" -not -path "*/vendor/*" -not -path "*/node_modules/*" -not -path "*/archive/*" -not -path "*/wordpress-dev/*" -not -path "*/tests/*" -not -path "*/playwright/*" -print0) if [ "$php_errors" = false ]; then echo -e "${GREEN}✅ All PHP files have valid syntax${NC}"