run-tests.yml 903 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Run tests
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. strategy:
  6. matrix:
  7. os: [Ubuntu, macOS]
  8. php: [7.2, 7.3, 7.4, 8.0]
  9. include:
  10. - os: Ubuntu
  11. os-version: ubuntu-latest
  12. - os: macOS
  13. os-version: macos-latest
  14. name: ${{ matrix.os }} - PHP ${{ matrix.php }}
  15. runs-on: ${{ matrix.os-version }}
  16. steps:
  17. - name: Checkout code
  18. uses: actions/checkout@v1
  19. - name: Setup PHP
  20. uses: shivammathur/setup-php@v2
  21. with:
  22. php-version: ${{ matrix.php }}
  23. extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
  24. coverage: none
  25. - name: Install dependencies
  26. run: composer update --prefer-stable --prefer-dist --no-interaction
  27. - name: Run tests
  28. run: bash upgrade.sh