Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

82 wiersze
1.8KB

  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - '5.x'
  6. - '5.next'
  7. - '6.x'
  8. pull_request:
  9. branches:
  10. - '*'
  11. workflow_dispatch:
  12. permissions:
  13. contents: read
  14. jobs:
  15. testsuite:
  16. runs-on: ubuntu-24.04
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. include:
  21. - php-version: '8.2'
  22. dependencies: 'lowest'
  23. - php-version: '8.5'
  24. dependencies: 'highest'
  25. - php-version: '8.5'
  26. dependencies: 'highest'
  27. steps:
  28. - uses: actions/checkout@v7
  29. - name: Setup PHP
  30. uses: shivammathur/setup-php@v2
  31. with:
  32. php-version: ${{ matrix.php-version }}
  33. extensions: mbstring, intl, pdo_sqlite
  34. ini-values: zend.assertions=1
  35. coverage: none
  36. - name: Composer install
  37. uses: ramsey/composer-install@v4
  38. with:
  39. dependency-versions: ${{ matrix.dependencies }}
  40. composer-options: ${{ matrix.composer-options }}
  41. - name: Composer post install
  42. run: composer run-script post-install-cmd --no-interaction
  43. - name: Run PHPUnit
  44. run: vendor/bin/phpunit
  45. env:
  46. DATABASE_TEST_URL: sqlite://./testdb.sqlite
  47. coding-standard:
  48. name: Coding Standard & Static Analysis
  49. runs-on: ubuntu-24.04
  50. steps:
  51. - uses: actions/checkout@v7
  52. - name: Setup PHP
  53. uses: shivammathur/setup-php@v2
  54. with:
  55. php-version: '8.2'
  56. extensions: mbstring, intl
  57. coverage: none
  58. tools: cs2pr, phpstan:2.1
  59. - name: Composer install
  60. uses: ramsey/composer-install@v4
  61. - name: Run PHP CodeSniffer
  62. run: vendor/bin/phpcs --report=checkstyle | cs2pr
  63. - name: Run phpstan
  64. if: always()
  65. run: phpstan
  66. env:
  67. SECURITY_SALT: f76f1c8475585c46c6acd3ddcb8f5e0f15de524637bb4080a08c4afe7cfc9144

Powered by TurnKey Linux.