static.yml 659 B

1234567891011121314151617181920212223242526272829
  1. name: Static analysis
  2. on:
  3. pull_request:
  4. jobs:
  5. php-cs-fixer:
  6. name: PHP-CS-Fixer
  7. runs-on: ubuntu-22.04
  8. steps:
  9. - name: Checkout code
  10. uses: actions/checkout@v3
  11. - name: Setup PHP
  12. uses: shivammathur/setup-php@v2
  13. with:
  14. php-version: '7.4'
  15. coverage: none
  16. extensions: mbstring
  17. - name: Download dependencies
  18. run: composer update --no-interaction --no-progress
  19. - name: Download PHP CS Fixer
  20. run: composer require "friendsofphp/php-cs-fixer:2.18.4"
  21. - name: Execute PHP CS Fixer
  22. run: vendor/bin/php-cs-fixer fix --diff-format udiff --dry-run