ci.yml 807 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: ci
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. linux_tests:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. fail-fast: true
  10. matrix:
  11. php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
  12. name: PHP ${{ matrix.php }}
  13. steps:
  14. - name: Checkout code
  15. uses: actions/checkout@v3
  16. - name: Setup PHP
  17. uses: shivammathur/setup-php@v2
  18. with:
  19. php-version: ${{ matrix.php }}
  20. tools: composer:v2
  21. ini-values: error_reporting=E_ALL
  22. extensions: iconv, bcmath, tidy, mbstring, intl
  23. - name: Install dependencies
  24. run: composer install
  25. - name: Configure simpletest
  26. run: cp test-settings.sample.php test-settings.php
  27. - name: Execute Unit tests
  28. run: php tests/index.php