Skip to content

Commit 4722a16

Browse files
JaBistDuNarrischJaBistDuNarrisch
authored andcommitted
Workaround for Postgre 13
1 parent 7b1788d commit 4722a16

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
POSTGRES_USER: testuser
3333
POSTGRES_PASSWORD: testpass
3434
POSTGRES_DB: testdb
35-
POSTGRES_INITDB_ARGS: "-c max_connections=300"
35+
# As of v16 we can use:
36+
# POSTGRES_INITDB_ARGS: "-c max_connections=300"
3637
options: >-
3738
--health-cmd="pg_isready -U testuser"
3839
--health-interval=10s
@@ -85,6 +86,13 @@ jobs:
8586
- name: Create SQLServer database
8687
run: |
8788
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'YourStrong@Passw0rd' -Q "CREATE DATABASE [Whatever];"
89+
- name:
90+
Increase max connections (Postgre SQL).
91+
# Postgre < 16 cannot adjust it using env vars
92+
run: |
93+
docker exec postgres bash -c "echo \"max_connections = 300\" >> /var/lib/postgresql/data/postgresql.conf"
94+
docker restart postgres
95+
sleep 5
8896
- name: Create Oracle user
8997
run: |
9098
sql sys/adfkweflajdfglkj@localhost/FREEPDB1 as sysdba <<EOF

0 commit comments

Comments
 (0)