lint.yml 550 B

123456789101112131415161718192021222324252627282930
  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. - "5.3"
  13. - "8.0"
  14. steps:
  15. - name: "Checkout"
  16. uses: "actions/checkout@v2"
  17. - name: "Install PHP"
  18. uses: "shivammathur/setup-php@v2"
  19. with:
  20. coverage: "none"
  21. php-version: "${{ matrix.php-version }}"
  22. - name: "Lint PHP files"
  23. run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"