From 3aabd65b91ef1571d2817f13b55539b0106caa27 Mon Sep 17 00:00:00 2001 From: James Friel Date: Fri, 17 Nov 2023 15:49:28 +0000 Subject: [PATCH] try localhost --- .github/workflows/dotnet-core.yml | 20 ++++++++++++------- .../TestDatabases.txt | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 342b24c..3a96cd4 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -38,12 +38,18 @@ jobs: shell: bash run: | find ./RDMP/Tools/rdmp/Databases.yaml -type f -exec sed -i 's/RDMP_/TEST_/g' {} \; - - name: Initialise LocalDB - shell: bash - run: | - SqlLocalDB.exe create MSSQLLocalDB -s - sqlcmd -l 180 -S '(localdb)\MSSQLLocalDB' -Q "SELECT @@VERSION;" - sed -i'' -e 's/localhost/\(localdb\)\\MSSQLLocalDB/' RDMP/Tests.Common/TestDatabases.txt + # - name: Initialise LocalDB + # shell: bash + # run: | + # SqlLocalDB.exe create MSSQLLocalDB -s + # sqlcmd -l 180 -S '(localdb)\MSSQLLocalDB' -Q "SELECT @@VERSION;" + # sed -i'' -e 's/localhost/\(localdb\)\\MSSQLLocalDB/' RDMP/Tests.Common/TestDatabases.txt + - name: Install a SQL Server suite of tools + uses: potatoqualitee/mssqlsuite@v1.7 + with: + install: sqlengine, sqlclient, sqlpackage, localdb + - name: Run sqlclient + run: sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT @@version;" - uses: shogo82148/actions-setup-mysql@v1 with: mysql-version: '8.0' @@ -51,7 +57,7 @@ jobs: auto-start: true - name: Set up database run: | - dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- install --createdatabasetimeout 1800 "(localdb)\MSSQLLocalDB" TEST_ -e + dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- install --createdatabasetimeout 1800 localhost TEST_ -e - name: Test run: | dotnet test diff --git a/LoadModules.Extensions.Tests/TestDatabases.txt b/LoadModules.Extensions.Tests/TestDatabases.txt index c4d9a75..5a498e1 100644 --- a/LoadModules.Extensions.Tests/TestDatabases.txt +++ b/LoadModules.Extensions.Tests/TestDatabases.txt @@ -6,7 +6,7 @@ #To achieve this, you can run DatabaseCreation.exe with argument 1 being your ServerName #You can apply a prefix e.g. TEST_ as an argument to DatabaseCreation.exe and include that prefix below if you like -ServerName: (localdb)\MSSQLocalDB +ServerName: localhost Prefix: TEST_ #MySql: Server=localhost;Uid=root;Pwd=zombie;SSLMode=None #Oracle: Data Source=localhost:1521/orclpdb.dundee.uni;User Id=ora;Password=zombie;