run-tests.yml 959 B

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