Skip to content

Commit

Permalink
reduce the number of permutations needed
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jan 23, 2024
1 parent a4ca170 commit 0760315
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0760315

Please sign in to comment.