phpcs.yml 446 B

123456789101112131415161718192021
  1. name: PHP-CS-Fixer
  2. on: [ pull_request, push ]
  3. jobs:
  4. lint:
  5. name: PHP-CS-Fixer
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: Checkout the code
  9. uses: actions/checkout@v4
  10. - name: Ignore comments in switch
  11. run: php tests/remove-comments-in-switch.php
  12. - name: Check for code style violation with PHP-CS-Fixer
  13. uses: docker://oskarstark/php-cs-fixer-ga
  14. with:
  15. args: --diff --dry-run