Skip to content

Commit be21f9a

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

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/tests.yml

Lines changed: 20 additions & 9 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,10 @@ 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
69+
DB_COLLATION: utf8mb4_unicode_ci
6570

6671
mariadb:
6772
runs-on: ubuntu-22.04
@@ -70,8 +75,10 @@ jobs:
7075
mysql:
7176
image: mariadb:10.5
7277
env:
73-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
74-
MYSQL_DATABASE: forge
78+
MYSQL_RANDOM_ROOT_PASSWORD: yes
79+
MYSQL_DATABASE: pulse
80+
MYSQL_USER: pulse
81+
MYSQL_PASSWORD: password
7582
ports:
7683
- 3306:3306
7784
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -113,8 +120,10 @@ jobs:
113120
- name: Execute tests
114121
run: vendor/bin/pest
115122
env:
116-
DB_CONNECTION: mysql
117-
DB_USERNAME: root
123+
DB_CONNECTION: mariadb
124+
DB_DATABASE: pulse
125+
DB_USERNAME: pulse
126+
DB_PASSWORD: password
118127

119128
pgsql:
120129
runs-on: ubuntu-22.04
@@ -123,8 +132,8 @@ jobs:
123132
postgresql:
124133
image: postgres:14
125134
env:
126-
POSTGRES_DB: forge
127-
POSTGRES_USER: forge
135+
POSTGRES_DB: pulse
136+
POSTGRES_USER: pulse
128137
POSTGRES_PASSWORD: password
129138
ports:
130139
- 5432:5432
@@ -169,6 +178,8 @@ jobs:
169178
run: vendor/bin/pest
170179
env:
171180
DB_CONNECTION: pgsql
181+
DB_DATABASE: pulse
182+
DB_USERNAME: pulse
172183
DB_PASSWORD: password
173184

174185
sqlite:

0 commit comments

Comments
 (0)