Skip to content

Commit 85ae2f4

Browse files
committed
ci: Fix Setup of MSSQL
1 parent 2870002 commit 85ae2f4

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/php80.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ jobs:
5656
done
5757
5858
- name: Setup MSSQL
59-
run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db'
59+
run: |
60+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
61+
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
62+
sudo apt update
63+
sudo apt install mssql-tools18
64+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db' -C
6065
6166
- name: Install Dependencies
6267
run: composer install --prefer-dist --no-interaction --no-dev

.github/workflows/php81.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ jobs:
5656
done
5757
5858
- name: Setup MSSQL
59-
run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db'
59+
run: |
60+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
61+
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
62+
sudo apt update
63+
sudo apt install mssql-tools18
64+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db' -C
6065
6166
- name: Install Dependencies
6267
run: composer install --prefer-dist --no-interaction --no-dev

.github/workflows/php82.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ jobs:
5757
done
5858
5959
- name: Setup MSSQL
60-
run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db'
60+
run: |
61+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
62+
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
63+
sudo apt update
64+
sudo apt install mssql-tools18
65+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db' -C
6166
6267
- name: Install Dependencies
6368
run: composer install --prefer-dist --no-interaction --no-dev

.github/workflows/php83.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ jobs:
5757
done
5858
5959
- name: Setup MSSQL
60-
run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db'
60+
run: |
61+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
62+
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
63+
sudo apt update
64+
sudo apt install mssql-tools18
65+
/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db' -C
6166
6267
- name: Install Dependencies
6368
run: composer install --prefer-dist --no-interaction --no-dev

0 commit comments

Comments
 (0)