Add heartbeat() method to AmqpQueueProvider (#28) #18
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: unit-test.yml | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| unit-test: | |
| strategy: | |
| matrix: | |
| os: [ 'ubuntu-latest' ] | |
| php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] | |
| rabbit: [ '3.10', '3.11', '3.12', '3.13', '4.0', '4.1', '4.2' ] | |
| runs-on: ${{matrix.os}} | |
| services: | |
| rabbit: | |
| image: rabbitmq:${{matrix.rabbit}}-management | |
| ports: | |
| - 5672:5672 | |
| steps: | |
| - name: Start PubSub emulator | |
| run: | | |
| docker run -d -p 8085:8085 gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators \ | |
| gcloud beta emulators pubsub start --host-port=0.0.0.0:8085 | |
| timeout 30 bash -c 'until curl -s http://localhost:8085 > /dev/null 2>&1; do sleep 1; done' | |
| - uses: actions/checkout@v6 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{matrix.php}} | |
| coverage: xdebug | |
| tools: composer, phpunit | |
| - run: composer install -n --prefer-dist --no-security-blocking | |
| - run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover=coverage.xml | |
| env: | |
| PUBSUB_EMULATOR_HOST: localhost:8085 | |
| - run: php vendor/bin/coverage-check coverage.xml 10 |