lint.yml 599 B

12345678910111213141516171819202122232425262728293031
  1. name: "PHP Lint"
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. tests:
  7. name: "Lint"
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. php-version:
  12. - "8.1"
  13. steps:
  14. - name: "Checkout"
  15. uses: "actions/checkout@v2"
  16. - name: "Install PHP"
  17. uses: "shivammathur/setup-php@v2"
  18. with:
  19. coverage: "none"
  20. extensions: "intl"
  21. ini-values: "memory_limit=-1"
  22. php-version: "${{ matrix.php-version }}"
  23. - name: "Lint PHP files"
  24. run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"