1
0

update-psalm-baseline.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. strategy:
  11. fail-fast: false
  12. matrix:
  13. branches: ["master", "stable25", "stable24", "stable23"]
  14. name: update-psalm-baseline-${{ matrix.branches }}
  15. steps:
  16. - uses: actions/checkout@v3
  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.0'
  24. extensions: ctype,curl,dom,fileinfo,gd,intl,json,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 -- --monochrome --no-progress --output-format=text --update-baseline
  32. continue-on-error: true
  33. - name: Psalm OCP
  34. run: composer run psalm -- -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@v4
  42. with:
  43. token: ${{ secrets.COMMAND_BOT_PAT }}
  44. commit-message: 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