Skip to content

Address issues with more recent PHPStan versions #65

Address issues with more recent PHPStan versions

Address issues with more recent PHPStan versions #65

Workflow file for this run

on: [push, pull_request]
name: Unit test
jobs:
tests:
name: PHP ${{ matrix.php }} / SF ^${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0, 8.1]
symfony: [4.4.*, 5.4.*, 6.0.*]
exclude:
- php: 7.4
symfony: 6.0.*
services:
rabbitmq:
# 3.8.10 and later versions has enabled TLSv1.3 by default which is not supported by PHP images
# TLSv1.3 can be disabled by using configuration file, but not environment variables
image: rabbitmq:3.8.9-management
ports:
- 5671:5671
- 5672:5672
- 15671:15671
- 15672:15672
env:
RABBITMQ_DEFAULT_VHOST: swarrot
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
extensions: amqp
coverage: none
- name: Start broker service
run: docker restart ${{ job.services.rabbitmq.id }}
- name: Install Symfony Flex
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts symfony/flex
- name: Install the dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Wait for broker service
run: Tests/bin/wait_broker
- name: Run the unit tests
run: vendor/bin/phpunit --colors=always