Skip to content

Commit

Permalink
choco install postgres16 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Sep 10, 2024
1 parent 7bc9a22 commit 1ef3fe6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/setup-postgres-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ runs:
steps:
- shell: pwsh
run: |
choco install postgresql16 \
--params "/Password:password" \
--ia "--enable-components server,commandlinetools --extract-only 1" \
--no-progress
PG_BINDIR=$("$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --bindir)
PG_LIBDIR=$("$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --libdir)
$pgService = Get-Service -Name postgresql*
Set-Service -InputObject $pgService -Status running -StartupType automatic
Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru
Expand Down

0 comments on commit 1ef3fe6

Please sign in to comment.