static-analysis.yml 770 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: static analysis
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - '*.x'
  7. pull_request:
  8. permissions:
  9. contents: read
  10. jobs:
  11. tests:
  12. runs-on: ubuntu-22.04
  13. strategy:
  14. fail-fast: true
  15. name: Static Analysis
  16. steps:
  17. - name: Checkout code
  18. uses: actions/checkout@v4
  19. - name: Setup PHP
  20. uses: shivammathur/setup-php@v2
  21. with:
  22. php-version: 8.2
  23. tools: composer:v2
  24. coverage: none
  25. - name: Install dependencies
  26. uses: nick-fields/retry@v2
  27. with:
  28. timeout_minutes: 5
  29. max_attempts: 5
  30. command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
  31. - name: Execute type checking
  32. run: vendor/bin/phpstan