static.yml 857 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Static Analysis
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. phpstan:
  7. name: PHPStan
  8. runs-on: ubuntu-20.04
  9. steps:
  10. - name: Checkout Code
  11. uses: actions/checkout@v2
  12. - name: Setup PHP
  13. uses: shivammathur/setup-php@v2
  14. with:
  15. php-version: '7.3'
  16. tools: composer:v2
  17. coverage: none
  18. - name: Install Dependencies
  19. uses: nick-invision/retry@v1
  20. with:
  21. timeout_minutes: 5
  22. max_attempts: 5
  23. command: composer update --no-interaction --no-progress
  24. - name: Install PHPStan
  25. uses: nick-invision/retry@v1
  26. with:
  27. timeout_minutes: 5
  28. max_attempts: 5
  29. command: composer bin phpstan update --no-interaction --no-progress
  30. - name: Execute PHPStan
  31. run: vendor/bin/phpstan analyze --no-progress