Add PostgreSQL installation bin directory to path of MacOS GitHub action

This commit is contained in:
Aditya Toshniwal 2024-05-02 12:51:39 +05:30
parent 099577959b
commit 1e6fab92b0

View File

@ -20,8 +20,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
pgver: [12, 13, 14, 15, 16]
os: [macos-latest]
pgver: [12]
runs-on: ${{ matrix.os }}
@ -44,6 +44,7 @@ jobs:
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install postgresql@${{ matrix.pgver }}
echo "/opt/homebrew/opt/postgresql@${{ matrix.pgver }}/bin" >> $GITHUB_PATH
- name: Uninstall PostgreSQL if already present
if: ${{ matrix.os == 'windows-latest' }}