Skip to content

Commit 2a886be

Browse files
driesvintsjessarcher
authored andcommitted
MySQL in CI
1 parent a3f1d18 commit 2a886be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
runs-on: ubuntu-22.04
1515

1616
services:
17+
mysql:
18+
image: mysql:5.7
19+
env:
20+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
21+
MYSQL_DATABASE: testing
22+
ports:
23+
- 3306:3306
24+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
1725
redis:
1826
image: redis
1927
ports:
@@ -51,3 +59,6 @@ jobs:
5159
5260
- name: Execute tests
5361
run: vendor/bin/pest
62+
env:
63+
DB_CONNECTION: mysql
64+
DB_USERNAME: root

0 commit comments

Comments
 (0)