update-psalm-baseline.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. strategy:
  10. fail-fast: false
  11. matrix:
  12. branches: ["master", "stable24", "stable23", "stable22"]
  13. name: update-psalm-baseline-${{ matrix.branches }}
  14. steps:
  15. - uses: actions/checkout@v2
  16. with:
  17. ref: ${{ matrix.branches }}
  18. submodules: true
  19. - name: Set up php7.4
  20. uses: shivammathur/setup-php@v2
  21. with:
  22. php-version: 7.4
  23. extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
  24. coverage: none
  25. - name: Composer install
  26. run: composer install
  27. - name: Psalm
  28. run: composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
  29. continue-on-error: true
  30. - name: Reset composer
  31. run: |
  32. git clean -f lib/composer
  33. git checkout composer.json composer.lock lib/composer
  34. - name: Create Pull Request
  35. uses: peter-evans/create-pull-request@v3
  36. with:
  37. token: ${{ secrets.COMMAND_BOT_PAT }}
  38. commit-message: Update psalm baseline
  39. committer: GitHub <noreply@github.com>
  40. author: nextcloud-command <nextcloud-command@users.noreply.github.com>
  41. signoff: true
  42. branch: automated/noid/${{ matrix.branches }}-update-psalm-baseline
  43. title: "[${{ matrix.branches }}] Update psalm-baseline.xml"
  44. body: |
  45. Auto-generated update psalm-baseline.xml with fixed psalm warnings
  46. labels: |
  47. automated pr
  48. 3. to review
  49. team-reviewers: server-backend