ci.yml 949 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: CI
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. PHPUnit:
  7. name: PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }})
  8. runs-on: ubuntu-20.04
  9. strategy:
  10. matrix:
  11. env:
  12. - client
  13. - server
  14. php:
  15. - 7.4
  16. - 7.3
  17. - 7.2
  18. - 7.1
  19. - 7.0
  20. - 5.6
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Setup PHP
  24. uses: shivammathur/setup-php@v2
  25. with:
  26. php-version: ${{ matrix.php }}
  27. coverage: xdebug
  28. - run: docker pull crossbario/autobahn-testsuite
  29. - run: composer install
  30. - run: sh tests/ab/run_ab_tests.sh
  31. env:
  32. ABTEST: ${{ matrix.env }}
  33. SKIP_DEFLATE: _skip_deflate
  34. if: ${{ matrix.php <= 5.6 }}
  35. - run: sh tests/ab/run_ab_tests.sh
  36. env:
  37. ABTEST: ${{ matrix.env }}
  38. if: ${{ matrix.php >= 7.0 }}
  39. - run: vendor/bin/phpunit --verbose