Skip to content

Commit a641624

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

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 11 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,17 +63,22 @@ 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
6873

6974
services:
7075
mysql:
71-
image: mariadb:10.5
76+
image: mariadb:10
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
@@ -88,7 +95,7 @@ jobs:
8895
laravel: [11]
8996
stability: [prefer-stable]
9097

91-
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Stability ${{ matrix.stability }} - MariaDB 10.5
98+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Stability ${{ matrix.stability }} - MariaDB 10
9299

93100
steps:
94101
- name: Checkout code
@@ -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)