Skip to content

Commit f24a5e1

Browse files
rojiCopilot
authored andcommitted
WIP on SQL Server testing on Github Actions
1 parent f636cf4 commit f24a5e1

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
- name: Restore
41+
run: restore.sh
42+
43+
- name: Test on SQL Server
44+
run: dotnet test test/EFCore.SqlServer.FunctionalTests
45+
46+
- name: Publish Test Results
47+
uses: actions/upload-artifact@v6
48+
if: always()
49+
with:
50+
name: test-results
51+
path: artifacts/log/Debug/*

EFCore.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
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" />

0 commit comments

Comments
 (0)