Skip to content

Commit f5e218a

Browse files
committed
Test
1 parent 22a61fe commit f5e218a

1 file changed

Lines changed: 35 additions & 30 deletions

File tree

.github/workflows/TestSqlServer.yaml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,51 @@ jobs:
2323
matrix:
2424
sqlserver_version: [2025, 2022, 2019]
2525

26-
services:
27-
mssql:
28-
image: mcr.microsoft.com/mssql/server:${{ matrix.sqlserver_version }}-latest
29-
env:
30-
ACCEPT_EULA: "Y"
31-
SA_PASSWORD: "${{ secrets.MSSQL_SA_PASSWORD2 }}"
32-
ports:
33-
- 1433:1433
34-
options: >-
35-
--health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -Q 'SELECT 1' -C"
36-
--health-start-period=20s
37-
--health-interval=2s
38-
--health-retries=30
39-
--health-timeout=5s
26+
# services:
27+
# mssql:
28+
# image: mcr.microsoft.com/mssql/server:${{ matrix.sqlserver_version }}-latest
29+
# env:
30+
# ACCEPT_EULA: "Y"
31+
# SA_PASSWORD: "${{ secrets.MSSQL_SA_PASSWORD2 }}"
32+
# ports:
33+
# - 1433:1433
34+
# options: >-
35+
# --health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -Q 'SELECT 1' -C"
36+
# --health-start-period=20s
37+
# --health-interval=2s
38+
# --health-retries=30
39+
# --health-timeout=5s
4040

4141
steps:
4242
# Note that the secret is required for the SQL Server service to start above, and that happens before any steps.
4343
# We still have this step with always() (so it doesn't get skipped if the service failed to start) to help debug
4444
# issues.
45+
# - name: Check that secrets.MSSQL_SA_PASSWORD2 exists
46+
# if: ${{ secrets.MSSQL_SA_PASSWORD2 == '' }}
47+
# run: |
48+
# echo "::error::Missing secret: MSSQL_SA_PASSWORD2"
49+
# exit 1
50+
4551
- name: Check that secrets.MSSQL_SA_PASSWORD2 exists
4652
if: ${{ secrets.MSSQL_SA_PASSWORD2 == '' }}
4753
run: |
48-
echo "::error::Missing secret: MSSQL_SA_PASSWORD2"
49-
exit 1
54+
echo "Test: ${{ secrets.MSSQL_SA_PASSWORD2 }}"
5055
51-
- name: Checkout
52-
uses: actions/checkout@v6
56+
# - name: Checkout
57+
# uses: actions/checkout@v6
5358

54-
- name: Restore
55-
run: ./restore.sh
59+
# - name: Restore
60+
# run: ./restore.sh
5661

57-
- name: Export SQL Server connection string as an environment variable for the tests
58-
run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=${{ secrets.MSSQL_SA_PASSWORD2 }};Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
62+
# - name: Export SQL Server connection string as an environment variable for the tests
63+
# run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=${{ secrets.MSSQL_SA_PASSWORD2 }};Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
5964

60-
- name: Test on SQL Server
61-
run: dotnet test test/EFCore.SqlServer.FunctionalTests
65+
# - name: Test on SQL Server
66+
# run: dotnet test test/EFCore.SqlServer.FunctionalTests
6267

63-
- name: Publish Test Results
64-
uses: actions/upload-artifact@v6
65-
if: always()
66-
with:
67-
name: test-results-sqlserver-${{ matrix.sqlserver_version }}
68-
path: artifacts/log/Debug/*
68+
# - name: Publish Test Results
69+
# uses: actions/upload-artifact@v6
70+
# if: always()
71+
# with:
72+
# name: test-results-sqlserver-${{ matrix.sqlserver_version }}
73+
# path: artifacts/log/Debug/*

0 commit comments

Comments
 (0)