lint.yml 687 B

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