From d4587a39f9bb7eb04fb00bd4b7f587d0651736fa Mon Sep 17 00:00:00 2001 From: Pankaj Agrawal Date: Mon, 11 Sep 2023 13:34:57 +0530 Subject: [PATCH] fix(*): Add CI files for code coverage --- .env.testing | 2 +- .github/workflows/unit-testing.yml | 2 +- config/database.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.testing b/.env.testing index bb05718ffc..3fb5010364 100644 --- a/.env.testing +++ b/.env.testing @@ -5,7 +5,7 @@ APP_TIMEZONE=UTC DB_CONNECTION=testing DB_TEST_DATABASE=portal_test -DB_TEST_USERNAME='root' +DB_TEST_USERNAME='mysql_test_user' DB_TEST_PASSWORD='root' CACHE_DRIVER=array diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 6ed39ef267..2ebef358e9 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -17,7 +17,7 @@ jobs: mysql: image: mysql:5.7 env: - MYSQL_USER: root + MYSQL_USER: mysql_test_user MYSQL_PASSWORD: root MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: portal_test diff --git a/config/database.php b/config/database.php index 29dfa528c0..f9bc79bdf0 100644 --- a/config/database.php +++ b/config/database.php @@ -59,7 +59,7 @@ 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_TEST_DATABASE', 'portal_test'), - 'username' => env('DB_TEST_USERNAME', 'root'), + 'username' => env('DB_TEST_USERNAME', 'mysql_test_user'), 'password' => env('DB_TEST_PASSWORD', 'root'), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci',