diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 998cbf3b8..8f1d7bdc1 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -71,29 +71,6 @@ jobs: DATABASE_URL: "mysql://username:password@127.0.0.1:3306/testsuite" run: bash scripts/test.sh - - name: Install postgresql-client - run: | - sudo apt-get update - sudo apt-get install --yes postgresql-client - - - name: Connect to PostgreSQL with CLI - run: env PGPASSWORD=password psql -h localhost -U username -c 'SELECT VERSION();' testsuite - - - name: Show max connections - run: env PGPASSWORD=password psql -h localhost -U username -c 'SHOW max_connections;' testsuite - - - name: Alter max connections - run: | - docker exec -i `docker ps -q --filter ancestor=postgres:10.8` bash << EOF - sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf - sed -i -e 's/shared_buffers = 128MB/shared_buffers = 512MB/' /var/lib/postgresql/data/postgresql.conf - EOF - docker restart --time 0 postgres - sleep 5 - - - name: Show max connections - run: env PGPASSWORD=password psql -h localhost -U username -c 'SHOW max_connections;' testsuite - - name: Run postgres env: DATABASE_URL: "postgresql://username:password@localhost:5432/testsuite"