You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update-psalm-baseline.yml 2.1KB

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@b4ffde65f46336ab88eb53be808477a3936bae11
  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: 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@a4f52f8033a6168103c2538976c07b467e8163bc
  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