File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test SQL Server
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - feature/*
8+ - release/*
9+ pull_request :
10+ branches :
11+ - main
12+ - feature/*
13+ - release/*
14+
15+ permissions : {}
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-24.04
20+
21+ services :
22+ mssql :
23+ image : mcr.microsoft.com/mssql/server:2025-latest
24+ env :
25+ ACCEPT_EULA : " Y"
26+ SA_PASSWORD : " ${{ secrets.MSSQL_SA_PASSWORD }}"
27+ ports :
28+ - 1433:1433
29+ options : >-
30+ --health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -Q 'SELECT 1' -C"
31+ --health-start-period=20s
32+ --health-interval=2s
33+ --health-retries=30
34+ --health-timeout=5s
35+
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v6
39+
40+ # TODO: Try removing
41+ - name : Restore
42+ run : ./restore.sh
43+
44+ - name : Export SQL Server connection string as an environment variable for the tests
45+ run : echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=${{ secrets.MSSQL_SA_PASSWORD }};Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
46+
47+ - name : Test on SQL Server
48+ run : dotnet test test/EFCore.SqlServer.FunctionalTests
49+
50+ - name : Publish Test Results
51+ uses : actions/upload-artifact@v6
52+ if : always()
53+ with :
54+ name : test-results
55+ path : artifacts/log/Debug/*
Original file line number Diff line number Diff line change 1919 <File Path =" .github/workflows/copilot-setup-steps.yml" />
2020 <File Path =" .github/workflows/inter-branch-merge-flow.yml" />
2121 <File Path =" .github/workflows/TestCosmos.yaml" />
22+ <File Path =" .github/workflows/TestSqlServer.yaml" />
2223 </Folder >
2324 <Folder Name =" /src/" >
2425 <File Path =" src/Directory.Build.props" />
You can’t perform that action at this time.
0 commit comments