From 469406e40c40392317f5929f11e077a26ab56185 Mon Sep 17 00:00:00 2001 From: necessarylion Date: Sun, 31 Dec 2023 00:51:15 +0630 Subject: [PATCH] try with user dox --- .github/workflows/test.yaml | 4 ++-- packages/dox-query-builder/test/mysql.dart | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 975d310..547e779 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,7 @@ jobs: ports: - 3306 env: - MYSQL_USER: root + MYSQL_USER: dox MYSQL_PASSWORD: password MYSQL_DATABASE: dox-framework MYSQL_ROOT_PASSWORD: password @@ -62,4 +62,4 @@ jobs: - name: Run Test (query builder postgres) run: melos test_query_builder_postgres - name: Run Test (query builder mysql) - run: melos test_query_builder_mysql + run: USER=dox melos test_query_builder_mysql diff --git a/packages/dox-query-builder/test/mysql.dart b/packages/dox-query-builder/test/mysql.dart index 1d0d9c3..86a4e03 100644 --- a/packages/dox-query-builder/test/mysql.dart +++ b/packages/dox-query-builder/test/mysql.dart @@ -5,10 +5,11 @@ import 'package:mysql1/mysql1.dart'; Future mysqlConnection() { String host = Platform.environment['DB_HOST'] ?? 'localhost'; int port = int.parse(Platform.environment['PORT'] ?? '3306'); + String user = Platform.environment['USER'] ?? 'root'; ConnectionSettings settings = ConnectionSettings( host: host, port: port, - user: 'root', + user: user, password: 'password', db: 'dox-framework', );