Skip to content

Commit f78a983

Browse files
committed
Add PostgreSQL to path on macOS
1 parent 367ffda commit f78a983

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,16 @@ jobs:
106106
- name: Install PostgreSQL
107107
run: brew install postgresql@${{ matrix.postgresql-version }}
108108
if: ${{ runner.os == 'macOS' }}
109+
- name: Add PostgreSQL to Path
110+
run: echo "$(brew --prefix postgresql@${{matrix.postgresql-version }})/bin" >> $GITHUB_PATH
111+
if: ${{ runner.os == 'macOS' }}
109112
- name: Set PGUSER on macOS
110113
run: |
111114
echo "PGUSER=$USER" >> $GITHUB_ENV
112115
echo "LIBPQJL_DATABASE_USER=$USER" >> $GITHUB_ENV
113116
if: ${{ runner.os == 'macOS' }}
114117
- name: Start Homebrew PostgreSQL service
115-
run: $(brew --prefix postgresql@${{matrix.postgresql-version }})/bin/pg_ctl -D ${{ matrix.macos-postgresql-path }}@${{ matrix.postgresql-version }} start
118+
run: pg_ctl -D ${{ matrix.macos-postgresql-path }}@${{ matrix.postgresql-version }} start
116119
if: ${{ runner.os == 'macOS' }}
117120
# Windows
118121
- name: Add PostgreSQL to Path

0 commit comments

Comments
 (0)