Skip to content

Commit fbdec3e

Browse files
committed
Explicit db config
1 parent 671ad4e commit fbdec3e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
mysql:
1010
image: mysql:5.7
1111
env:
12-
MYSQL_ROOT_PASSWORD: forge
12+
MYSQL_ROOT_PASSWORD: root
1313
MYSQL_DATABASE: forge
1414
ports:
1515
- 3306:3306
@@ -50,7 +50,7 @@ jobs:
5050
run: vendor/bin/phpunit --verbose --colors=always --coverage-clover ./build/logs/clover.xml
5151
env:
5252
DB_USERNAME: root
53-
DB_PASSWORD: forge
53+
DB_PASSWORD: root
5454
DB_DATABASE: forge
5555

5656
- name: Code coverage

tests/LoggableTraitOnMysqlTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ protected function setUpDatabase(): void
1717
{
1818
config([
1919
'database.default' => 'mysql',
20+
'database.connections.mysql.username' => 'root',
21+
'database.connections.mysql.password' => 'root',
2022
'database.connections.mysql.database' => '',
2123
]);
2224
}

0 commit comments

Comments
 (0)