update-psalm-baseline.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Update Psalm baseline
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '5 4 * * *'
  6. jobs:
  7. update-psalm-baseline:
  8. runs-on: ubuntu-latest
  9. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  10. steps:
  11. - uses: actions/checkout@v2
  12. with:
  13. submodules: true
  14. - name: Set up php7.4
  15. uses: shivammathur/setup-php@v2
  16. with:
  17. php-version: 7.4
  18. extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
  19. coverage: none
  20. - name: Composer install
  21. run: composer install
  22. - name: Psalm
  23. run: composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
  24. continue-on-error: true
  25. - name: Reset composer
  26. run: |
  27. git clean -f lib/composer
  28. git checkout composer.json composer.lock lib/composer
  29. - name: Create Pull Request
  30. uses: peter-evans/create-pull-request@v3
  31. with:
  32. token: ${{ secrets.COMMAND_BOT_PAT }}
  33. commit-message: Update psalm baseline
  34. committer: GitHub <noreply@github.com>
  35. author: nextcloud-command <nextcloud-command@users.noreply.github.com>
  36. signoff: true
  37. branch: automated/noid/psalm-baseline-update
  38. # Make sure we can open multiple PRs
  39. branch-suffix: timestamp
  40. title: '[Automated] Update psalm-baseline.xml'
  41. body: |
  42. Auto-generated update psalm-baseline.xml with fixed psalm warnings
  43. labels: |
  44. automated pr
  45. 3. to review
  46. team-reviewers: server-backend