Skip to content

Commit

Permalink
try localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Nov 17, 2023
1 parent bd64510 commit 3aabd65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,26 @@ 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/[email protected]
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'
root-password: 'YourStrong!Passw0rd'
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
Expand Down
2 changes: 1 addition & 1 deletion LoadModules.Extensions.Tests/TestDatabases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3aabd65

Please sign in to comment.