update-psalm-baseline.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. name: Update Psalm baseline
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: "5 2 * * *"
  6. jobs:
  7. update-psalm-baseline:
  8. runs-on: ubuntu-latest
  9. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. branches: ["master", "stable29", "stable28", "stable27"]
  14. name: update-psalm-baseline-${{ matrix.branches }}
  15. steps:
  16. - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
  17. with:
  18. ref: ${{ matrix.branches }}
  19. submodules: true
  20. - name: Set up php
  21. uses: shivammathur/setup-php@v2
  22. with:
  23. php-version: '8.1'
  24. extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
  25. coverage: none
  26. env:
  27. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  28. - name: Composer install
  29. run: composer install
  30. - name: Psalm
  31. run: composer run psalm:ci -- --monochrome --no-progress --output-format=text --update-baseline
  32. continue-on-error: true
  33. - name: Psalm OCP
  34. run: composer run psalm:ci -- -c psalm-ocp.xml --monochrome --no-progress --output-format=github --update-baseline
  35. continue-on-error: true
  36. - name: Reset composer
  37. run: |
  38. git clean -f lib/composer
  39. git checkout composer.json composer.lock lib/composer
  40. - name: Create Pull Request
  41. uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e
  42. with:
  43. token: ${{ secrets.COMMAND_BOT_PAT }}
  44. commit-message: "chore(tests): Update psalm baseline"
  45. committer: GitHub <noreply@github.com>
  46. author: nextcloud-command <nextcloud-command@users.noreply.github.com>
  47. signoff: true
  48. branch: automated/noid/${{ matrix.branches }}-update-psalm-baseline
  49. title: "[${{ matrix.branches }}] Update psalm-baseline.xml"
  50. body: |
  51. Auto-generated update psalm-baseline.xml with fixed psalm warnings
  52. labels: |
  53. automated pr
  54. 3. to review
  55. team-reviewers: server-backend