lint.yml 856 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Lint
  2. on:
  3. push:
  4. branches: [master, vNext]
  5. pull_request:
  6. jobs:
  7. test:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. php:
  12. - 8.3
  13. name: Lint code (PHP ${{ matrix.php }})
  14. steps:
  15. - uses: actions/checkout@v3
  16. - name: Setup PHP ${{ matrix.php }}
  17. uses: shivammathur/setup-php@v2
  18. with:
  19. php-version: ${{ matrix.php }}
  20. coverage: none
  21. extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, intl, gd
  22. - name: Cache composer dependencies
  23. uses: actions/cache@v4
  24. with:
  25. path: vendor
  26. key: composer-${{ hashFiles('composer.lock') }}
  27. - name: Install dependencies
  28. run: composer install
  29. - name: Lint code
  30. env:
  31. COMPOSER_MEMORY_LIMIT: "-1"
  32. run: composer lint