Skip to content

Commit c278445

Browse files
Update github-actions-ci.yaml
1 parent fa0cedb commit c278445

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/github-actions-ci.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,10 @@ jobs:
1313
sqlserver:
1414
image: mcr.microsoft.com/mssql/server:2022-latest
1515
env:
16-
SA_PASSWORD: "Your_password123"
16+
SA_PASSWORD: "P@ssw0rd12345!"
1717
ACCEPT_EULA: "Y"
1818
ports:
1919
- 1433:1433
20-
options: >-
21-
--health-cmd "timeout 5s /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Your_password123 -Q 'SELECT 1' || exit 1"
22-
--health-interval 10s
23-
--health-timeout 5s
24-
--health-retries 10
2520
steps:
2621
- uses: actions/checkout@v4
2722

@@ -42,10 +37,19 @@ jobs:
4237
- name: Build samples
4338
run: dotnet build samples/PosInformatique.Testing.Databases.Samples.sln --configuration Debug --no-restore
4439

40+
- name: Install SQL Server command-line tools
41+
run: |
42+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
43+
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
44+
sudo apt-get update
45+
sudo apt-get install -y mssql-tools
46+
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
47+
source ~/.bashrc
48+
4549
- name: Run tests
4650
run: dotnet test PosInformatique.Testing.Databases.sln --configuration Debug --no-build --logger:"trx;LogFileName=test_results.trx"
4751
env:
48-
SQL_SERVER_UNIT_TESTS_CONNECTION_STRING: "Data Source=localhost,1433;Database=master;User Id=sa;Password=Your_password123;TrustServerCertificate=True;"
52+
SQL_SERVER_UNIT_TESTS_CONNECTION_STRING: "Data Source=localhost,1433;Database=master;User Id=sa;Password=P@ssw0rd12345!;TrustServerCertificate=True;"
4953

5054
build-samples:
5155
runs-on: windows-latest

0 commit comments

Comments
 (0)