Skip to content

Commit

Permalink
Merge pull request #910 from bavix/test-10x
Browse files Browse the repository at this point in the history
[10.x] Add support laravel ^11.0
  • Loading branch information
rez1dent3 authored Mar 12, 2024
2 parents d6f5b57 + bf4cebb commit 9557596
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/phpunits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
12 changes: 7 additions & 5 deletions tests/Infra/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9557596

Please sign in to comment.