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 1.6KB

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