Skip to content

Commit 4b5d241

Browse files
committed
ci: Update MySQL DB config
1 parent 2349ac8 commit 4b5d241

5 files changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/specs_mysql_rails61.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717

1818
env:
1919
DB_TEST: mysql
20-
MYSQL_DB_HOST: 127.0.0.1
21-
MYSQL_DB_USERNAME: root
22-
MYSQL_DB_PASSWORD: root
2320
RAILS_VERSION: 6.1
2421

2522
services:

.github/workflows/specs_mysql_rails72.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717

1818
env:
1919
DB_TEST: mysql
20-
MYSQL_DB_HOST: 127.0.0.1
21-
MYSQL_DB_USERNAME: root
22-
MYSQL_DB_PASSWORD: root
2320
RAILS_VERSION: 7.2
2421

2522
services:

.github/workflows/specs_mysql_rails80.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717

1818
env:
1919
DB_TEST: mysql
20-
MYSQL_DB_HOST: 127.0.0.1
21-
MYSQL_DB_USERNAME: root
22-
MYSQL_DB_PASSWORD: root
2320
RAILS_VERSION: 8.0
2421

2522
services:

extra/docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
image: mysql
2929
platform: linux/amd64
3030
environment:
31-
MYSQL_ROOT_PASSWORD: password
31+
MYSQL_ROOT_PASSWORD: root
3232

3333
postgres:
3434
image: postgres
@@ -52,8 +52,6 @@ services:
5252
DB_PORT: 3306
5353
MYSQL_DB_HOST: mysql
5454
MYSQL_DB_NAME: test_db
55-
MYSQL_DB_USERNAME: root
56-
MYSQL_DB_PASSWORD: password
5755
depends_on:
5856
- mysql
5957

spec/dummy/config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ test: &test
2424
host: <%= ENV.fetch('MYSQL_DB_HOST') { '127.0.0.1' } %>
2525
# port: <%= ENV.fetch('MYSQL_DB_PORT') { 3306 } %>
2626
database: <%= ENV.fetch('MYSQL_DB_NAME') { "active_storage_db_#{Rails.version.tr('.', '')}-test" } %>
27-
username: <%= ENV.fetch('MYSQL_DB_USERNAME') { '' } %>
28-
password: <%= ENV.fetch('MYSQL_DB_PASSWORD') { '' } %>
27+
username: <%= ENV.fetch('MYSQL_DB_USERNAME') { 'root' } %>
28+
password: <%= ENV.fetch('MYSQL_DB_PASSWORD') { 'root' } %>
2929
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
3030
development:
3131
<<: *test

0 commit comments

Comments
 (0)