Skip to content

Commit 710ebff

Browse files
committed
[github] setup mysql service
1 parent 31b805a commit 710ebff

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ jobs:
3030
image: "memcached:${{ matrix.memcached-version }}"
3131
ports:
3232
- 11211:11211
33+
mysql:
34+
image: mysql:8.0.21
35+
env:
36+
MYSQL_ROOT_PASSWORD: password
37+
ports:
38+
- 3306:3306
3339

3440
steps:
41+
- name: Start MySQL
42+
run: |
43+
sudo /etc/init.d/mysql start
44+
3545
- name: Checkout
3646
uses: actions/checkout@v3
3747
with:
@@ -65,4 +75,7 @@ jobs:
6575
- name: Run Tests
6676
run: php vendor/bin/phpunit
6777
env:
68-
MEMCACHED_HOST: 'localhost:11211'
78+
MEMCACHED_HOST: 'localhost:11211'
79+
MYSQL_HOST: '127.0.0.1'
80+
MYSQL_USER: 'root'
81+
MYSQL_PASSWORD: 'root'

0 commit comments

Comments
 (0)