Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Static analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: technote-space/get-diff-action@v6
with:
Expand All @@ -23,7 +23,7 @@ jobs:
extensions: mongodb, redis, :xdebug
ini-values: memory_limit=2048M

- run: php ./bin/fix-symfony-version.php "5.4.*"
- run: php ./bin/fix-symfony-version.php "7.4.*"

- uses: "ramsey/composer-install@v3"

Expand All @@ -37,7 +37,7 @@ jobs:
name: Code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: technote-space/get-diff-action@v6
with:
Expand Down Expand Up @@ -77,17 +77,25 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
symfony_version: ['6.2.*', '6.3.*', '6.4.*', '7.0.*']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
symfony_version: ['6.4.*', '7.3.*', '7.4.*', '8.0.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '8.1'
symfony_version: '7.0.*'
symfony_version: '7.3.*'
- php: '8.1'
symfony_version: '7.4.*'
- php: '8.1'
symfony_version: '8.0.*'
- php: '8.2'
symfony_version: '8.0.*'
- php: '8.3'
symfony_version: '8.0.*'

name: PHP ${{ matrix.php }} unit tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Get Composer Cache Directory
id: composer-cache
Expand Down Expand Up @@ -121,21 +129,25 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2' ]
symfony_version: [ '6.4.*', '7.0.*', '7.1.*', '7.2.*' ]
dependencies: [ '--prefer-lowest', '--prefer-dist' ]
php: ['8.1', '8.2', '8.3', '8.4']
symfony_version: ['6.4.*', '7.3.*', '7.4.*', '8.0.*']
dependencies: ['--prefer-lowest', '--prefer-dist']
exclude:
- php: '8.1'
symfony_version: '7.0.*'
symfony_version: '7.3.*'
- php: '8.1'
symfony_version: '7.1.*'
symfony_version: '7.4.*'
- php: '8.1'
symfony_version: '7.2.*'
symfony_version: '8.0.*'
- php: '8.2'
symfony_version: '8.0.*'
- php: '8.3'
symfony_version: '8.0.*'

name: PHP ${{ matrix.php }} functional tests on Sf ${{ matrix.symfony_version }}, deps=${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Get Composer Cache Directory
id: composer-cache
Expand Down
34 changes: 17 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"queue-interop/queue-interop": "^0.8.1",
"bunny/bunny": "^0.5.5",
"php-amqplib/php-amqplib": "^3.1",
"doctrine/dbal": "^3.2",
"doctrine/dbal": "^3.2|^4.0",
"ramsey/uuid": "^4.3",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"psr/container": "^1.1 || ^2.0",
"makasim/temp-file": "^0.2",
"google/cloud-pubsub": "^1.46",
"doctrine/orm": "^2.12",
"doctrine/persistence": "^2.0|^3.0",
"doctrine/orm": "3.6.x-dev",
"doctrine/persistence": "^2.0|^3.0|^4.0",
"mongodb/mongodb": "^1.17",
"pda/pheanstalk": "^3.1",
"aws/aws-sdk-php": "^3.290",
Expand All @@ -53,20 +53,20 @@
"phpunit/phpunit": "^9.5.28",
"phpstan/phpstan": "^1.0",
"queue-interop/queue-spec": "^0.6.2",
"symfony/browser-kit": "^6.2|^7.0",
"symfony/config": "^6.2|^7.0",
"symfony/process": "^6.2|^7.0",
"symfony/console": "^6.2|^7.0",
"symfony/dependency-injection": "^6.2|^7.0",
"symfony/event-dispatcher": "^6.2|^7.0",
"symfony/expression-language": "^6.2|^7.0",
"symfony/http-kernel": "^6.2|^7.0",
"symfony/filesystem": "^6.2|^7.0",
"symfony/framework-bundle": "^6.2|^7.0",
"symfony/validator": "^6.2|^7.0",
"symfony/yaml": "^6.2|^7.0",
"symfony/browser-kit": "^6.2|^7.0|^8.0",
"symfony/config": "^6.2|^7.0|^8.0",
"symfony/process": "^6.2|^7.0|^8.0",
"symfony/console": "^6.2|^7.0|^8.0",
"symfony/dependency-injection": "^6.2|^7.0|^8.0",
"symfony/event-dispatcher": "^6.2|^7.0|^8.0",
"symfony/expression-language": "^6.2|^7.0|^8.0",
"symfony/http-kernel": "^6.2|^7.0|^8.0",
"symfony/filesystem": "^6.2|^7.0|^8.0",
"symfony/framework-bundle": "^6.2|^7.0|^8.0",
"symfony/validator": "^6.2|^7.0|^8.0",
"symfony/yaml": "^6.2|^7.0|^8.0",
"empi89/php-amqp-stubs": "*@dev",
"doctrine/doctrine-bundle": "^2.5",
"doctrine/doctrine-bundle": "^2.5|^3.1",
"doctrine/mongodb-odm-bundle": "^4.7|^5.0",
"alcaeus/mongo-php-adapter": "^1.0",
"kwn/php-rdkafka-stubs": "^2.0.3",
Expand Down Expand Up @@ -127,7 +127,7 @@
"ext-rdkafka": "4.0",
"ext-bcmath": "1",
"ext-mbstring": "1",
"ext-mongodb": "1.17.3",
"ext-mongodb": "1.21",
"ext-sockets": "1"
},
"prefer-stable": true,
Expand Down
5 changes: 3 additions & 2 deletions docker/bin/refresh-mysql-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

$dbalContext = (new DbalConnectionFactory($dsn))->createContext();

$dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase($database);
$dbalContext->getDbalConnection()->exec('USE '.$database);
$dbalContext->getDbalConnection()->createSchemaManager()->dropDatabase($database);
$dbalContext->getDbalConnection()->createSchemaManager()->createDatabase($database);
$dbalContext->getDbalConnection()->executeQuery('USE '.$database);
$dbalContext->createDataBaseTable();

echo 'MySQL Database is updated'.\PHP_EOL;
4 changes: 3 additions & 1 deletion docker/bin/refresh-postgres-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

$dbalContext = (new DbalConnectionFactory($dsn))->createContext();

$dbalContext->getDbalConnection()->getSchemaManager()->dropAndCreateDatabase('postgres');
$database = 'postgres';
$dbalContext->getDbalConnection()->createSchemaManager()->dropDatabase($database);
$dbalContext->getDbalConnection()->createSchemaManager()->createDatabase($database);
$dbalContext->createDataBaseTable();

echo 'Postgresql Database is updated'.\PHP_EOL;
4 changes: 2 additions & 2 deletions pkg/amqp-bunny/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-ext/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-lib/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/amqp-tools/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions pkg/async-command/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class AsyncCommandExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
foreach ($configs['clients'] as $client) {
// BC compatibility
Expand Down
16 changes: 8 additions & 8 deletions pkg/async-command/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"php": "^8.1",
"enqueue/enqueue": "^0.10",
"queue-interop/queue-interop": "^0.8",
"symfony/console": "^5.4|^6.0",
"symfony/process": "^5.4|^6.0"
"symfony/console": "^6.2|^7.0|^8.0",
"symfony/process": "^6.2|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/filesystem": "^5.4|^6.0",
"symfony/yaml": "^5.4|^6.0",
"symfony/dependency-injection": "^6.2|^7.0|^8.0",
"symfony/config": "^6.2|^7.0|^8.0",
"symfony/http-kernel": "^6.2|^7.0|^8.0",
"symfony/filesystem": "^6.2|^7.0|^8.0",
"symfony/yaml": "^6.2|^7.0|^8.0",
"enqueue/null": "0.10.x-dev",
"enqueue/fs": "0.10.x-dev",
"enqueue/test": "0.10.x-dev"
Expand All @@ -31,7 +31,7 @@
"docs": "https://github.com/php-enqueue/enqueue-dev/blob/master/docs/index.md"
},
"suggest": {
"symfony/dependency-injection": "^5.4|^6.0 If you'd like to use async event dispatcher container extension."
"symfony/dependency-injection": "^6.2|^7.0|^8.0 If you'd like to use async event dispatcher container extension."
},
"autoload": {
"psr-4": { "Enqueue\\AsyncCommand\\": "" },
Expand Down
4 changes: 2 additions & 2 deletions pkg/async-event-dispatcher/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class AsyncEventDispatcherExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$config = $this->processConfiguration(new Configuration(), $configs);

Expand Down
4 changes: 2 additions & 2 deletions pkg/dbal/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2', '8.3', '8.4', '8.5']

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- uses: shivammathur/setup-php@v2
with:
Expand Down
Loading
Loading