Skip to content

Commit 8d0d433

Browse files
committed
fix(ci): replace deprecated apt-key with modern Ubuntu 24.04+ package installation
1 parent 399d696 commit 8d0d433

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
"type: documentation":
1313
- changed-files:
14-
- any-glob-to-any-file: ['assets/**/*', '.github/*', './*.md']
14+
- any-glob-to-any-file: ['assets/**/*', '.github/*', './*.md', '.cursor/*']
1515

1616
"type: maintenance":
1717
- changed-files:

.github/workflows/testing-mssql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ jobs:
6666
UBUNTU_VERSION=$(lsb_release -rs 2>/dev/null || echo "24.04")
6767
echo "Installing ODBC driver for Ubuntu $UBUNTU_VERSION"
6868
69-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
70-
curl https://packages.microsoft.com/config/ubuntu/$UBUNTU_VERSION/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
69+
curl -fsSL "https://packages.microsoft.com/config/ubuntu/${UBUNTU_VERSION}/packages-microsoft-prod.deb" -o packages-microsoft-prod.deb
70+
sudo dpkg -i packages-microsoft-prod.deb
7171
sudo apt-get update
7272
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 unixodbc-dev
73-
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
74-
source ~/.bashrc
73+
# Make sqlcmd available to subsequent steps
74+
echo "/opt/mssql-tools18/bin" >> "$GITHUB_PATH"
7575
7676
- name: 🛠️ Setup PHP
7777
uses: shivammathur/[email protected]

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"fakerphp/faker": "^1.24",
6969
"larastan/larastan": "^2.11",
7070
"laravel/telescope": "^5.12",
71-
"orchestra/testbench": "^8.21 || ^9.15.0 || 10.0",
71+
"orchestra/testbench": "^8.21 || ^9.15.0 || ^10.0",
7272
"pestphp/pest": "^2.36",
7373
"pestphp/pest-plugin-laravel": "^2.4",
7474
"phpstan/extension-installer": "^1.4",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)