Skip to content

Commit

Permalink
Merge pull request #712 from cakephp/pg-build
Browse files Browse the repository at this point in the history
Align postgres build config with no-phinx
  • Loading branch information
markstory authored Apr 27, 2024
2 parents 2a5f996 + 9ff437a commit def209f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ jobs:
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pg-password
PGPASSWORD: pg-password
POSTGRES_DB: cakephp_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
Expand All @@ -49,9 +56,11 @@ jobs:
- name: Setup Postgres
if: matrix.db-type == 'pgsql'
env:
PGUSER: postgres
PGPASSWORD: pg-password
run: |
export PGPASSWORD='pg-password'
psql -h 127.0.0.1 -U postgres -c 'CREATE DATABASE "cakephp_snapshot";'
psql -h 127.0.0.1 -c 'CREATE DATABASE "cakephp_snapshot";'
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit def209f

Please sign in to comment.