integration.yml 800 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Integration
  2. on:
  3. pull_request:
  4. jobs:
  5. build:
  6. name: Test
  7. runs-on: ubuntu-latest
  8. strategy:
  9. max-parallel: 10
  10. matrix:
  11. php: ['7.2', '7.3', '7.4', '8.0']
  12. steps:
  13. - name: Set up PHP
  14. uses: shivammathur/setup-php@v2
  15. with:
  16. php-version: ${{ matrix.php }}
  17. coverage: none
  18. - name: Checkout code
  19. uses: actions/checkout@v2
  20. - name: Download dependencies
  21. uses: ramsey/composer-install@v1
  22. with:
  23. composer-options: --no-interaction --optimize-autoloader
  24. - name: Start server
  25. run: php -S 127.0.0.1:10002 tests/Integration/server.php &
  26. - name: Run tests
  27. env:
  28. TEST_SERVER: 127.0.0.1:10002
  29. run: ./vendor/bin/phpunit --testsuite Integration