Skip to content

Conversation

@MoamenEltouny
Copy link
Member

This pull request introduces automated PHP coding standards enforcement and improves the test workflow configuration. The main changes include adding a GitHub Actions workflow for PHP CS Fixer, providing a project-specific configuration for code style, and refining the test workflow for clearer output and more targeted branch execution.

Automated code style enforcement:

  • Added .github/workflows/php-cs-fixer.yml to automatically run PHP CS Fixer on every push, ensuring code adheres to defined standards and committing fixes automatically.
  • Added .php-cs-fixer.dist.php configuration file specifying rules (e.g., PSR-12, short array syntax, import ordering) and directories/files to include or exclude from fixing.

Test workflow improvements:

  • Updated .github/workflows/tests.yml to only trigger on pushes to main and develop branches and on pull requests, reducing unnecessary runs.
  • Changed PHPUnit command to use --testdox for more readable test output.

Code style consistency:

  • Fixed import order in tests/database/migrations/create_articles_table.php to comply with coding standards.

@MoamenEltouny MoamenEltouny self-assigned this Sep 4, 2025
@MoamenEltouny MoamenEltouny merged commit d28ef20 into main Sep 4, 2025
4 checks passed
@MoamenEltouny MoamenEltouny deleted the feature/github-workflows branch September 4, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants