Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

update-psalm-baseline.yml 2.2KB

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