-
-
Notifications
You must be signed in to change notification settings - Fork 21
67 lines (53 loc) · 1.47 KB
/
ci-build-mssql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: MSSQL CI build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
config: Release
disable_test_parallelization: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
db_pwd: P@55w0rd
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
# define the test matrix
matrix:
mssql-image:
- mcr.microsoft.com/mssql/server:2019-latest
- mcr.microsoft.com/mssql/server:2022-latest
name: MSSQL ${{ matrix.mssql-image }}
services:
sqlserver:
image: ${{ matrix.mssql-image }}
ports:
- 1433:1433
env:
ACCEPT_EULA: Y
SA_PASSWORD: ${{ env.db_pwd }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
env:
weasel_sqlserver_testing_database: "Server=localhost;User Id=sa;Password=${{ env.db_pwd }};TrustServerCertificate=true"
run: dotnet test src/Weasel.SqlServer.Tests/Weasel.SqlServer.Tests.csproj --no-build --verbosity normal