Skip to content

Commit e311b87

Browse files
committed
mysql root user
1 parent bdc0582 commit e311b87

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,14 @@ jobs:
143143
image: postgres:17
144144
env:
145145
POSTGRES_USER: alchemy_user
146-
POSTGRES_PASSWORD: password
146+
POSTGRES_HOST_AUTH_METHOD: trust
147147
ports: ["5432:5432"]
148148
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
149149
mariadb:
150150
image: mariadb:latest
151151
ports: ["3307:3306"]
152152
env:
153-
MARIADB_USER: alchemy_user
154-
MARIADB_PASSWORD: password
155-
MARIADB_ROOT_PASSWORD: password
153+
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
156154
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=5
157155
steps:
158156
- uses: actions/checkout@v6

spec/dummy/config/database.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ mariadb: &mariadb
1313
adapter: mysql2
1414
encoding: utf8mb4
1515
port: 3307
16-
username: <%= ENV['DB_USER'] %>
17-
password: <%= ENV['DB_PASSWORD'] %>
16+
username: root
1817
database: alchemy_cms_dummy_<%= Rails.env %><%= ENV['TEST_ENV_NUMBER'] %>
1918

2019
postgresql: &postgresql

0 commit comments

Comments
 (0)