static-analysis.yml 829 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: static analysis
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - '*.x'
  7. pull_request:
  8. schedule:
  9. - cron: '0 0 * * *'
  10. jobs:
  11. src:
  12. runs-on: ubuntu-22.04
  13. strategy:
  14. fail-fast: true
  15. name: Source Code
  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.0
  23. tools: composer:v2
  24. coverage: none
  25. - name: Setup Problem Matches
  26. run: |
  27. echo "::add-matcher::${{ runner.tool_cache }}/php.json"
  28. echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
  29. - name: Install PHP dependencies
  30. run: composer update --prefer-stable --no-interaction --no-progress
  31. - name: Execute tests
  32. run: vendor/bin/phpstan