Skip to content

Commit

Permalink
Install postgres via choco
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Jun 9, 2024
1 parent 5b52355 commit 4e743ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/NetCoreTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ jobs:
CONNECTION_STRING: "Host=localhost;Username=nhibernate;Password=nhibernate;Database=nhibernate;Enlist=true;"
OS: ubuntu-latest
DB_INIT: |
docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:14
docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13
- DB: PostgreSQL
CONNECTION_STRING: "Host=localhost;Username=postgres;Password=root;Database=nhibernate;Enlist=true;"
CONNECTION_STRING: "Host=localhost;Username=postgres;Password=nhibernate;Database=nhibernate;Enlist=true;"
OS: windows-latest
DB_INIT: |
# Enable prepared transactions
Add-Content -Path 'C:\Program Files\PostgreSQL\14\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
'C:\Program Files\PostgreSQL\14\bin\pg_ctl.exe' -D "C:\Program Files\PostgreSQL\14\data" start
# Start-Service 'postgresql-x64-14'
choco install postgresql13 --params '/Password:nhibernate'
Add-Content -Path 'C:\Program Files\PostgreSQL\13\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
Start-Service 'postgresql-x64-13'
- DB: Firebird
CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;"
OS: ubuntu-latest
Expand Down

0 comments on commit 4e743ea

Please sign in to comment.