Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
asthamohta committed Dec 19, 2024
1 parent b60da05 commit 0d56018
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/integration-tests-against-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,23 @@ jobs:
# init sql server with test_data
- name: Install sqlcmd required for loading .sql files
run: |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
sudo apt-get update
sudo apt-get install mssql-tools unixodbc-dev
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
# Download and register the Microsoft signing key
curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft-prod.gpg
# Add the Microsoft package repository (replace with your Ubuntu version if needed)
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/microsoft-prod.gpg] https://packages.microsoft.com/ubuntu/$(lsb_release -rs)/prod noble main" | sudo tee /etc/apt/sources.list.d/msprod.list
# Update the package list
sudo apt-get update -y
# Install the necessary packages with the EULA acceptance
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc-dev
# Add the sqlcmd directory to the PATH
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
- run: sqlcmd -?
- run: sqlcmd -U sa -P ${MSSQL_SA_PASSWORD} -i test_data/sqlserver.test.out
- run: sqlcmd -U sa -P "${{ secrets.MSSQL_SA_PASSWORD }}" -i test_data/sqlserver.test.out

# sqlplus set up init oracle db.
- name: Install sqlplus required for loading .sql files
Expand Down

0 comments on commit 0d56018

Please sign in to comment.