2
0

lint.yml 665 B

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