lint.yml 729 B

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