ci.yml 720 B

12345678910111213141516171819202122232425262728293031323334
  1. name: CI
  2. on:
  3. pull_request:
  4. jobs:
  5. build:
  6. name: Build
  7. runs-on: ubuntu-latest
  8. strategy:
  9. max-parallel: 10
  10. matrix:
  11. php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
  12. steps:
  13. - name: Set up PHP
  14. uses: shivammathur/setup-php@v2
  15. with:
  16. php-version: ${{ matrix.php }}
  17. coverage: 'none'
  18. extensions: mbstring
  19. - name: Checkout code
  20. uses: actions/checkout@v2
  21. - name: Mimic PHP 8.0
  22. run: composer config platform.php 8.0.999
  23. if: matrix.php > 8
  24. - name: Install dependencies
  25. run: composer update --no-interaction --no-progress
  26. - name: Run tests
  27. run: make test