Skip to content

Commit

Permalink
ACTION: add log for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-moussawi committed Aug 8, 2022
1 parent 6089745 commit 4486be6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
env:
MYSQL_HOST: 127.0.0.1
MYSQL_USER: root
MYSQL_DB: ${{ job.services.mysql.env.MYSQL_DATABASE }}
MYSQL_DB: test_sqlkata
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
- name: Pack QueryBuilder
if: matrix.os == 'ubuntu-latest'
Expand Down
4 changes: 3 additions & 1 deletion QueryBuilder.Tests/MySqlExecutionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ public QueryFactory SetupDb()
var host = System.Environment.GetEnvironmentVariable("MYSQL_HOST");
var user = System.Environment.GetEnvironmentVariable("MYSQL_USER");
var dbName = System.Environment.GetEnvironmentVariable("MYSQL_DB");
var cs = $"server={host};user={user};database={dbName}";
Console.WriteLine($"Using cs: {cs}");

var connection = new MySqlConnection($"server={host};user={user};database={dbName}");
var connection = new MySqlConnection(cs);

var db = new QueryFactory(connection, new MySqlCompiler());

Expand Down

0 comments on commit 4486be6

Please sign in to comment.