Skip to content

Commit 4168ae1

Browse files
mac os test
1 parent 3d97b58 commit 4168ae1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/validate.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,18 @@ jobs:
9494
run: |
9595
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
9696
brew update
97-
echo YES | ACCEPT_EULA=Y brew install msodbcsql18 mssql-tools18
97+
# Install expect if not present
98+
if ! command -v expect &> /dev/null; then
99+
brew install expect
100+
fi
101+
expect -c '
102+
spawn brew install msodbcsql18 mssql-tools18
103+
expect "Do you accept the license terms? (Enter YES or NO)"
104+
send "YES\r"
105+
expect eof
106+
'
107+
98108
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bash_profile
99-
source ~/.bash_profile
100109
# Windows
101110
- name: Install ODBC driver (Windows)
102111
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)