psalm-github.yml 990 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Psalm show github
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - master
  7. - stable*
  8. jobs:
  9. psalm:
  10. name: Psalm
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout code
  14. uses: actions/checkout@v2
  15. with:
  16. submodules: true
  17. - name: Set up php
  18. uses: shivammathur/setup-php@v2
  19. with:
  20. php-version: '8.0'
  21. extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
  22. coverage: none
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. - name: Composer install
  26. run: composer i
  27. - name: Psalm
  28. uses: docker://vimeo/psalm-github-actions:4.9.3
  29. continue-on-error: true
  30. with:
  31. composer_ignore_platform_reqs: false
  32. report_file: results.sarif
  33. - name: Upload Analysis results to GitHub
  34. uses: github/codeql-action/upload-sarif@v1
  35. with:
  36. sarif_file: results.sarif