You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Automatically run the setup steps when they are changed to allow for easy validation, and
6
6
# allow manual testing through the repository's "Actions" tab
@@ -20,10 +20,6 @@ jobs:
20
20
copilot-setup-steps:
21
21
runs-on: ubuntu-24.04
22
22
23
-
env:
24
-
MSSQL_SA_PASSWORD: 'PLACEHOLDERPass$$w0rd'
25
-
Test__SqlServer__DefaultConnection: 'Server=localhost;Database=master;User=SA;Password=PLACEHOLDERPass$$w0rd;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true'
26
-
27
23
# Install SQL Server via a docker container.
28
24
# It's better to do this rather than e.g. use a testcontainer, because then the agent can reuse the same container
29
25
# and instance of SQL Server rather than have to start it up each time it needs to iterate and run a test.
@@ -32,7 +28,7 @@ jobs:
32
28
image: mcr.microsoft.com/mssql/server:2025-latest
33
29
env:
34
30
ACCEPT_EULA: Y
35
-
SA_PASSWORD: ${{ env.MSSQL_SA_PASSWORD }}
31
+
SA_PASSWORD: 'PLACEHOLDERPass$$w0rd'
36
32
ports:
37
33
- 1433:1433
38
34
options: >-
@@ -43,7 +39,5 @@ jobs:
43
39
--health-timeout=5s
44
40
45
41
steps:
46
-
# The Github Actions workflow syntax requires there to be at least one step;
47
-
# we don't have anything to do (we started SQL Server above), so just print something.
48
-
- name: Dummy step
49
-
run: echo "Workflow complete."
42
+
- name: Export connection string for the agent's session
43
+
run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=PLACEHOLDERPass$$w0rd;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"
0 commit comments