Skip to content

Commit

Permalink
try some setup code instead
Browse files Browse the repository at this point in the history
  • Loading branch information
croyfish committed Nov 12, 2024
1 parent 93c5605 commit 8ba4f87
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
entrypoint: ["postgres", "-c", "shared_buffers=64MB", "-c", "work_mem=4MB"]
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
Expand All @@ -36,7 +35,6 @@ jobs:
image: mysql:5.6
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
entrypoint: ["mysqld", "--innodb-buffer-pool-size=64M"]
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
Expand Down Expand Up @@ -71,6 +69,18 @@ jobs:
gem update --system '3.3.22'
gem install bundler -v '2.5.18'
- name: Set up PostgreSQL
run: |
docker exec ${{ job.services.postgres.id }} bash -c "psql -U postgres -c 'ALTER SYSTEM SET shared_buffers TO '64MB';'"
docker exec ${{ job.services.postgres.id }} bash -c "psql -U postgres -c 'ALTER SYSTEM SET work_mem TO '4MB';'"
docker restart ${{ job.services.postgres.id }}
- name: Set up MySQL
run: |
docker exec ${{ job.services.mysql.id }} bash -c "echo '[mysqld]' > /etc/mysql/conf.d/custom.cnf"
docker exec ${{ job.services.mysql.id }} bash -c "echo 'innodb_buffer_pool_size=64M' >> /etc/mysql/conf.d/custom.cnf"
docker restart ${{ job.services.mysql.id }}
- name: Wait for Database Services
run: |
sudo apt-get update
Expand Down

0 comments on commit 8ba4f87

Please sign in to comment.