Skip to content

Commit

Permalink
Explicit db config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Oct 12, 2023
1 parent 671ad4e commit fbdec3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: forge
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: forge
ports:
- 3306:3306
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
run: vendor/bin/phpunit --verbose --colors=always --coverage-clover ./build/logs/clover.xml
env:
DB_USERNAME: root
DB_PASSWORD: forge
DB_PASSWORD: root
DB_DATABASE: forge

- name: Code coverage
Expand Down
2 changes: 2 additions & 0 deletions tests/LoggableTraitOnMysqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ protected function setUpDatabase(): void
{
config([
'database.default' => 'mysql',
'database.connections.mysql.username' => 'root',
'database.connections.mysql.password' => 'root',
'database.connections.mysql.database' => '',
]);
}
Expand Down

0 comments on commit fbdec3e

Please sign in to comment.