✨ feat(transporter): add MultiplexRpcTransporter #956
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: [push, pull_request] | |
| jobs: | |
| ci: | |
| name: Test on PHP ${{ matrix.php-version }} | |
| runs-on: "${{ matrix.os }}" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| php-version: ['7.1', '7.2', '7.3', '7.4', '8.0'] | |
| max-parallel: 20 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| coverage: none | |
| - name: Setup Packages | |
| run: composer update -o | |
| - name: Run Analyse | |
| run: | | |
| composer analyse src | |
| - name: Setup Consul | |
| run: docker run -d --name=dev-consul -e CONSUL_BIND_INTERFACE=eth0 --net=host consul:1.15.4 | |
| - name: Setup Services | |
| run: | | |
| docker run -d --name jsonrpc -p 9501:9501 -p 9502:9502 -p 9503:9503 -p 9504:9504 -p 9505:9505 iisiam/hyperf-rpc-demo:latest | |
| sleep 10 | |
| php ./tests/register.php | |
| - name: Run Test Cases | |
| run: | | |
| cp phpunit.xml.dist phpunit.xml | |
| composer test |