We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b3850 commit f407ae6Copy full SHA for f407ae6
.github/actions/setup-postgres-macos/action.yml
@@ -7,7 +7,14 @@ runs:
7
run: |
8
brew install postgresql@16
9
brew link postgresql@16 --force
10
- brew services start postgresql@16
+
11
+ # Add the services tap and ensure PATH is updated
12
+ brew tap homebrew/services
13
+ export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
14
15
+ # Start PostgreSQL using the full command instead of brew services
16
+ pg_ctl -D /opt/homebrew/var/postgresql@16 start
17
18
echo "Check PostgreSQL service is running"
19
i=10
20
COMMAND='pg_isready'
@@ -22,5 +29,6 @@ runs:
22
29
sleep 10
23
30
((i--))
24
31
done
32
25
33
createuser -s postgres
26
34
bash ${{ github.action_path }}/setup_db.sh
0 commit comments