From ee52adbae94e1d57d5ca98ac2238261cbe97eb75 Mon Sep 17 00:00:00 2001 From: Tom Levy Date: Tue, 2 Jan 2024 03:02:13 +1300 Subject: [PATCH] WIP: check that scripts work without setting PGUSER --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd33d464..6583edc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ jobs: postgres: image: postgres:11 env: + POSTGRES_USER: pguser POSTGRES_PASSWORD: postgres ports: ['5432:5432'] options: >- @@ -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 @@ -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 @@ -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