Skip to content

Commit

Permalink
WIP: check that scripts work without setting PGUSER
Browse files Browse the repository at this point in the history
  • Loading branch information
tom93 committed Jan 1, 2024
1 parent 760ca26 commit ee52adb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
postgres:
image: postgres:11
env:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
options: >-
Expand All @@ -25,7 +26,7 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432"
DATABASE_URL: "postgresql://pguser:postgres@localhost:5432"

steps:
- uses: actions/checkout@v3
Expand All @@ -35,7 +36,7 @@ jobs:

- run: bash script/install/config.bash --defaults
env:
DATABASE_USERNAME: postgres
DATABASE_USERNAME: pguser
DATABASE:
TEST_DATABASE: nztraintest
REDIS_INSTALL: false
Expand All @@ -48,7 +49,7 @@ jobs:
- run: AUTOCONFIRM=true script/install.bash --skip-update
env:
PGHOST: localhost
PGUSER: postgres
#PGUSER: pguser
PGPASSWORD: postgres

- run: bundle exec rake db:test:load
Expand Down

0 comments on commit ee52adb

Please sign in to comment.