Skip to content

Commit 21d1773

Browse files
committed
ci: Update MySQL DB config
1 parent 2349ac8 commit 21d1773

File tree

5 files changed

+5
-19
lines changed

5 files changed

+5
-19
lines changed

.github/workflows/specs_mysql_rails61.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ 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:
2623
mysql:
2724
image: mysql
2825
env:
29-
MYSQL_USER: root
30-
MYSQL_PASSWORD: root
26+
MYSQL_PASSWORD: password
3127
# options: >-
3228
# --health-cmd="mysqladmin ping"
3329
# --health-interval 10s

.github/workflows/specs_mysql_rails72.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ 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:
2623
mysql:
2724
image: mysql
2825
env:
29-
MYSQL_USER: root
30-
MYSQL_PASSWORD: root
26+
MYSQL_PASSWORD: password
3127
# options: >-
3228
# --health-cmd="mysqladmin ping"
3329
# --health-interval 10s

.github/workflows/specs_mysql_rails80.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ 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:
2623
mysql:
2724
image: mysql
2825
env:
29-
MYSQL_USER: root
30-
MYSQL_PASSWORD: root
26+
MYSQL_PASSWORD: password
3127
# options: >-
3228
# --health-cmd="mysqladmin ping"
3329
# --health-interval 10s

extra/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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') { 'password' } %>
2929
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
3030
development:
3131
<<: *test

0 commit comments

Comments
 (0)