diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 175fc3025..dc2ab672d 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -19,7 +19,7 @@ jobs: strategy: matrix: php-versions: [8.1, 8.2, 8.3] - stability: [prefer-lowest, prefer-stable] + laravel-versions: [^10.0, ^11.0] databases: [testing, pgsql, mysql, mariadb] caches: [array, redis, memcached, database] locks: [redis, memcached] @@ -116,7 +116,7 @@ jobs: - name: Install dependencies id: composer-dependencies - run: composer update --${{ matrix.stability }} --prefer-dist --no-progress + run: composer req --dev laravel/framework:${{ matrix.laravel-versions }} -W || composer install - name: Check codeclimate id: codeclimate-check diff --git a/composer.json b/composer.json index 23360fce2..27a3253ba 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "wallet", "payments" ], - "minimum-stability": "stable", + "minimum-stability": "dev", + "prefer-stable": true, "homepage": "https://bavix.github.io/laravel-wallet/", "license": "MIT", "authors": [ diff --git a/tests/Infra/TestCase.php b/tests/Infra/TestCase.php index b1c5f91d6..cf74a8a63 100644 --- a/tests/Infra/TestCase.php +++ b/tests/Infra/TestCase.php @@ -64,11 +64,13 @@ final protected function getEnvironmentSetUp($app): void $config->set('database.connections.pgsql.prefix', 'tests'); $config->set('database.connections.mysql.prefix', 'tests'); - /** @var array<string, mixed> $mysql */ - $mysql = $config->get('database.connections.mysql'); - $config->set('database.connections.mariadb', array_merge($mysql, [ - 'port' => 3307, - ])); + if (! $config->has('database.connections.mariadb')) { + /** @var array<string, mixed> $mysql */ + $mysql = $config->get('database.connections.mysql'); + $config->set('database.connections.mariadb', $mysql); + } + + $config->set('database.connections.mariadb.port', 3307); // new table name's $config->set('wallet.transaction.table', 'transaction');