fix: Exclude test directories from pre-deployment validation
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
b44fa97317
commit
50d28a1640
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue