Skip to content

Commit 27bf501

Browse files
committed
enable sql server
1 parent 8c6c22d commit 27bf501

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ jobs:
99

1010
runs-on: ubuntu-latest
1111

12+
services:
13+
sqlserver:
14+
image: mcr.microsoft.com/mssql/server:2019-latest
15+
ports:
16+
- 1433:1433
17+
env:
18+
SA_PASSWORD: YourStrong@Passw0rd
19+
ACCEPT_EULA: Y
20+
options: >-
21+
--health-cmd " /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q 'SELECT 1'"
22+
--health-interval=10s
23+
--health-timeout=5s
24+
--health-retries=10
25+
1226
steps:
1327
- uses: actions/checkout@v4
1428
- name: Setup .NET

src/Migrator.Tests/appsettings.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"Id": "SQLite",
55
"ConnectionString": "Data Source=:memory:;version=3"
66
},
7-
/*
8-
{
9-
"Id": "SQLServer",
10-
"ConnectionString": "Data Source=whatever\\whatever;Initial Catalog=Whatever;user=xxx;pwd=xxx;encrypt=false"
11-
},
12-
{
13-
"Id": "PostgreSQL",
14-
"ConnectionString": "Server=localhost;Port=5432;Database=dev;User Id=xxx;Password=xxx;"
15-
},
16-
{
17-
"Id": "Oracle",
18-
"ConnectionString": "Data Source=localhost:1521/xxx;User Id=xxx;Password=xxx"
19-
}
7+
{
8+
"Id": "SQLServer",
9+
"ConnectionString": "Data Source=localhost;Initial Catalog=Whatever;user=sa;pwd=YourStrong@Passw0rd;encrypt=false"
10+
},
11+
/*
12+
{
13+
"Id": "PostgreSQL",
14+
"ConnectionString": "Server=localhost;Port=5432;Database=dev;User Id=xxx;Password=xxx;"
15+
},
16+
{
17+
"Id": "Oracle",
18+
"ConnectionString": "Data Source=localhost:1521/xxx;User Id=xxx;Password=xxx"
19+
}
2020
*/
2121
]
2222
}

0 commit comments

Comments
 (0)