diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7874db024..e5ab29004 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -75,6 +75,15 @@ jobs: CONTAINER_ID=$(docker ps --filter "publish=5432" --format "{{.ID}}") docker exec $CONTAINER_ID bash -c "sed -i 's/^#max_connections = 100/max_connections = 256/' /var/lib/postgresql/data/postgresql.conf" docker exec --user postgres $CONTAINER_ID bash -c "pg_ctl reload" + - name: Verify max_connections Setting + run: | + # Connect to the PostgreSQL service and query the max_connections setting + MAX_CONNECTIONS=$(psql -h localhost -p 5432 -U postgres -c "SHOW max_connections;" -tA) + + # Output the result + echo "max_connections is set to: $MAX_CONNECTIONS" + env: + PGPASSWORD: password - name: Migrate DB run: cd backend/src && go run main.go --only-migrate - name: Run Tests with Coverage