Skip to content

Commit d92c267

Browse files
committed
Fix copilot-setup-steps.yml
1 parent 83c327b commit d92c267

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,33 @@ jobs:
2626
image: mcr.microsoft.com/mssql/server:2025-latest
2727
env:
2828
ACCEPT_EULA: "Y"
29-
SA_PASSWORD: ${{ secrets.MSSQL_SA_PASSWORD }}
29+
SA_PASSWORD: "P@ssw0rd12345!"
3030
ports:
3131
- 1433:1433
32-
options: >-
33-
--health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P '${{ secrets.MSSQL_SA_PASSWORD }}' -Q 'SELECT 1' -C"
34-
--health-start-period=20s
35-
--health-interval=2s
36-
--health-retries=30
37-
--health-timeout=5s
32+
# options: >-
33+
# --health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -Q 'SELECT 1' -C"
34+
# --health-start-period=20s
35+
# --health-interval=2s
36+
# --health-retries=30
37+
# --health-timeout=5s
3838

3939
permissions:
4040
contents: read
4141

42-
# You can define any steps you want, and they will run before the agent starts.
43-
# If you do not check out your code, Copilot will do this for you.
4442
steps:
4543
- name: Checkout
4644
uses: actions/checkout@v5
4745

4846
- name: Restore
4947
run: ./restore.sh
5048

51-
- name: Export SQL Server connection string for the agent's session
52-
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"
49+
# - name: Export SQL Server connection string for the agent's session
50+
# run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=${MSSQL_SA_PASSWORD};Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
51+
52+
- name: Run tests (temporary)
53+
env:
54+
TEST__SQLSERVER__DEFAULTCONNECTION: Server=localhost;Database=master;User=SA;Password=P@ssw0rd12345!;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true
55+
run: |
56+
./activate.sh
57+
dotnet test test/EFCore.SqlServer.FunctionalTests --filter Microsoft.EntityFrameworkCore.Query.Translations.GuidTranslationsSqlServerTest
58+

0 commit comments

Comments
 (0)