Skip to content

Commit 3cd8f19

Browse files
authored
Prepare MSSQL workflow for ubuntu-24.04 runner image (yiisoft#20298)
1 parent dd4efda commit 3cd8f19

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci-mssql.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
EXTENSIONS: pdo, pdo_sqlsrv
1717
XDEBUG_MODE: coverage, develop
1818

19-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.mssql.os || 'ubuntu-latest' }}
2020

2121
strategy:
2222
fail-fast: false
@@ -38,6 +38,7 @@ jobs:
3838
mssql:
3939
version: server:2017-latest
4040
mssql-tool: /opt/mssql-tools/bin/sqlcmd
41+
os: ubuntu-22.04
4142
- php: 8.0
4243
mssql:
4344
version: server:2019-latest
@@ -55,6 +56,9 @@ jobs:
5556
options: --name=mssql --health-cmd="${{ matrix.mssql.mssql-tool }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
5657

5758
steps:
59+
- name: Install ODBC driver
60+
run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
61+
5862
- name: Checkout
5963
uses: actions/checkout@v4
6064

tests/data/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'fixture' => __DIR__ . '/sqlite.sql',
3838
],
3939
'sqlsrv' => [
40-
'dsn' => 'sqlsrv:Server=127.0.0.1,1433;Database=yiitest',
40+
'dsn' => 'sqlsrv:Server=127.0.0.1,1433;Database=yiitest;Encrypt=no',
4141
'username' => 'SA',
4242
'password' => 'YourStrong!Passw0rd',
4343
'fixture' => __DIR__ . '/mssql.sql',

0 commit comments

Comments
 (0)