phpstan.yml 883 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Static analysis
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. test:
  7. name: PHPStan
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. steps:
  12. - name: Check out code
  13. uses: actions/checkout@v3.5.3
  14. - name: Install PHP
  15. uses: shivammathur/setup-php@2.25.4
  16. with:
  17. php-version: '7.4'
  18. tools: composer:v2
  19. coverage: none
  20. - name: Install dependencies
  21. uses: nick-fields/retry@v2.8.3
  22. with:
  23. timeout_minutes: 5
  24. max_attempts: 5
  25. command: composer update --no-interaction --no-progress
  26. - name: Install PHPStan
  27. uses: nick-fields/retry@v2.8.3
  28. with:
  29. timeout_minutes: 5
  30. max_attempts: 5
  31. command: composer bin phpstan update --no-interaction --no-progress
  32. - name: Run static analysis
  33. run: make phpstan