Skip to content

Commit 586c8cc

Browse files
committed
Fix CI database authentication
1 parent 19cc157 commit 586c8cc

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
mysql:
1818
image: mysql:5.7
1919
env:
20-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
21-
MYSQL_DATABASE: forge
20+
MYSQL_RANDOM_ROOT_PASSWORD: yes
21+
MYSQL_DATABASE: pulse
22+
MYSQL_USER: pulse
23+
MYSQL_PASSWORD: password
2224
ports:
2325
- 3306:3306
2426
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -61,7 +63,9 @@ jobs:
6163
run: vendor/bin/pest
6264
env:
6365
DB_CONNECTION: mysql
64-
DB_USERNAME: root
66+
DB_DATABASE: pulse
67+
DB_USERNAME: pulse
68+
DB_PASSWORD: password
6569

6670
mariadb:
6771
runs-on: ubuntu-22.04
@@ -70,8 +74,10 @@ jobs:
7074
mysql:
7175
image: mariadb:10.5
7276
env:
73-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
74-
MYSQL_DATABASE: forge
77+
MYSQL_RANDOM_ROOT_PASSWORD: yes
78+
MYSQL_DATABASE: pulse
79+
MYSQL_USER: pulse
80+
MYSQL_PASSWORD: password
7581
ports:
7682
- 3306:3306
7783
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -114,7 +120,9 @@ jobs:
114120
run: vendor/bin/pest
115121
env:
116122
DB_CONNECTION: mysql
117-
DB_USERNAME: root
123+
DB_DATABASE: pulse
124+
DB_USERNAME: pulse
125+
DB_PASSWORD: password
118126

119127
pgsql:
120128
runs-on: ubuntu-22.04
@@ -123,8 +131,8 @@ jobs:
123131
postgresql:
124132
image: postgres:14
125133
env:
126-
POSTGRES_DB: forge
127-
POSTGRES_USER: forge
134+
POSTGRES_DB: pulse
135+
POSTGRES_USER: pulse
128136
POSTGRES_PASSWORD: password
129137
ports:
130138
- 5432:5432
@@ -169,6 +177,8 @@ jobs:
169177
run: vendor/bin/pest
170178
env:
171179
DB_CONNECTION: pgsql
180+
DB_DATABASE: pulse
181+
DB_USERNAME: pulse
172182
DB_PASSWORD: password
173183

174184
sqlite:

0 commit comments

Comments
 (0)