Skip to content

Commit 4d051b3

Browse files
committed
ci: Update Postgres DB config
1 parent 4b5d241 commit 4d051b3

5 files changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/specs_postgres_rails61.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ jobs:
1717

1818
env:
1919
DB_TEST: postgres
20-
PG_DB_HOST: 127.0.0.1
21-
PG_DB_USERNAME: postgres
22-
PG_DB_PASSWORD: postgres
2320
RAILS_VERSION: 6.1
2421

2522
services:
2623
postgres:
2724
image: postgres:latest
2825
env:
2926
POSTGRES_USER: postgres
30-
POSTGRES_PASSWORD: postgres
27+
POSTGRES_PASSWORD: password
3128
options: >-
3229
--health-cmd pg_isready
3330
--health-interval 10s

.github/workflows/specs_postgres_rails72.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ jobs:
1717

1818
env:
1919
DB_TEST: postgres
20-
PG_DB_HOST: 127.0.0.1
21-
PG_DB_USERNAME: postgres
22-
PG_DB_PASSWORD: postgres
2320
RAILS_VERSION: 7.2
2421

2522
services:
2623
postgres:
2724
image: postgres:latest
2825
env:
2926
POSTGRES_USER: postgres
30-
POSTGRES_PASSWORD: postgres
27+
POSTGRES_PASSWORD: password
3128
options: >-
3229
--health-cmd pg_isready
3330
--health-interval 10s

.github/workflows/specs_postgres_rails80.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ jobs:
1717

1818
env:
1919
DB_TEST: postgres
20-
PG_DB_HOST: 127.0.0.1
21-
PG_DB_USERNAME: postgres
22-
PG_DB_PASSWORD: postgres
2320
RAILS_VERSION: 8.0
2421

2522
services:
2623
postgres:
2724
image: postgres:latest
2825
env:
2926
POSTGRES_USER: postgres
30-
POSTGRES_PASSWORD: postgres
27+
POSTGRES_PASSWORD: password
3128
options: >-
3229
--health-cmd pg_isready
3330
--health-interval 10s

extra/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ services:
6262
DB_PORT: 5432
6363
PG_DB_HOST: postgres
6464
PG_DB_NAME: test_db
65-
PG_DB_USERNAME: postgres
66-
PG_DB_PASSWORD: password
6765
depends_on:
6866
- postgres
6967

spec/dummy/config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ test: &test
3838
adapter: postgresql
3939
host: <%= ENV.fetch('PG_DB_HOST') { '127.0.0.1' } %>
4040
database: <%= ENV.fetch('PG_DB_NAME') { "active_storage_db_#{Rails.version.tr('.', '')}-test" } %>
41-
username: <%= ENV.fetch('PG_DB_USERNAME') { '' } %>
42-
password: <%= ENV.fetch('PG_DB_PASSWORD') { '' } %>
41+
username: <%= ENV.fetch('PG_DB_USERNAME') { 'postgres' } %>
42+
password: <%= ENV.fetch('PG_DB_PASSWORD') { 'password' } %>
4343
min_messages: warning
4444
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
4545
development:

0 commit comments

Comments
 (0)