Skip to content

Commit

Permalink
change database port in the staging-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Aug 1, 2024
1 parent 5ed076b commit a805727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/staging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
run: yarn lint
- name: Wait for PostgreSQL to be ready
run: |
until pg_isready -h localhost -p 5432; do
until pg_isready -h localhost -p 5446; do
echo "Waiting for PostgreSQL to be ready..."
sleep 1
done
- name: Check and Create Database if it doesn't exist
run: |
psql -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'notification-center'" | grep -q 1 || psql -U postgres -c "CREATE DATABASE \"notification-center\";"
psql -h localhost -p 5446 -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'notification-center'" | grep -q 1 || psql -h localhost -p 5446 -U postgres -c "CREATE DATABASE \"notification-center\";"
- name: Run migrations
run: yarn db:migrate:run:test
- name: Run tests
Expand Down

0 comments on commit a805727

Please sign in to comment.