Skip to content

Commit

Permalink
Fix CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 2, 2023
1 parent 8afd804 commit 09b32a4
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 09b32a4

Please sign in to comment.