Reconnect and heartbeat fixes #37
Workflow file for this run
This file contains 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: "Continuous Integration" | |
on: [ push, pull_request ] | |
jobs: | |
psalm: | |
name: Psalm | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
tools: composer:v2 | |
- name: Install dependencies with composer | |
run: composer install -ov | |
- name: Run vimeo/psalm | |
run: ./vendor/bin/psalm --config=psalm.xml --shepherd | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: none | |
tools: composer:v2 | |
- name: Install dependencies with composer | |
run: composer install -ov | |
- name: Run phpstan/phpstan | |
run: ./vendor/bin/phpstan analyse src --level 9 | |
phpunit: | |
name: PHPUnit | |
runs-on: ubuntu-latest | |
services: | |
rabbitmq: | |
image: rabbitmq:alpine | |
ports: | |
- 5672:5672 | |
env: | |
RABBITMQ_DEFAULT_USER: guest | |
RABBITMQ_DEFAULT_PASS: guest | |
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 | |
env: | |
PHP_EXTENSIONS: mbstring, dom, intl, json, libxml, xml, xmlwriter, sockets | |
PHP_INI_VALUES: assert.exception=1, zend.assertions=1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: ${{ env.PHP_EXTENSIONS }} | |
ini-values: ${{ env.PHP_INI_VALUES }} | |
tools: composer:v2 | |
- name: Install dependencies | |
run: composer update -ov | |
- name: Await | |
uses: jakejarvis/wait-action@master | |
- name: Run tests with phpunit | |
run: php ./vendor/bin/phpunit --configuration ./phpunit.xml |