From 6728287ebe93a55462680fa22084d072427cd6e9 Mon Sep 17 00:00:00 2001 From: Stephen Afam-Osemene Date: Wed, 11 Dec 2024 09:38:19 +0100 Subject: [PATCH] Add step to install sqlcmd --- .github/workflows/test.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8a2a458ba..72945787e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,6 +41,14 @@ jobs: # && apt-add-repository ppa:git-core/ppa # && apt-get update # && apt-get install -y curl locales + + - name: install_sqlcmd + run: > + curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc + && curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list + && apt-get update && apt-get install mssql-tools18 unixodbc-dev + && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile + && source ~/.bash_profile # # Set up locales for sqlcmd (otherwise it breaks) # - name: setup_locales