Skip to content

Commit 81b88d2

Browse files
committed
adjust CI to use MySQL 9.6
1 parent d934c01 commit 81b88d2

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ permissions:
1515
jobs:
1616
testsuite:
1717
runs-on: ubuntu-24.04
18+
services:
19+
mysql:
20+
image: mysql:9.6
21+
env:
22+
MYSQL_ROOT_PASSWORD: root
23+
MYSQL_DATABASE: plugins_cakephp_test
24+
ports:
25+
- 3306:3306
26+
options: >-
27+
--health-cmd="mysqladmin ping -h 127.0.0.1 -proot"
28+
--health-interval=10s
29+
--health-timeout=5s
30+
--health-retries=10
1831
strategy:
1932
fail-fast: false
2033
matrix:
@@ -29,7 +42,7 @@ jobs:
2942
uses: shivammathur/setup-php@v2
3043
with:
3144
php-version: ${{ matrix.php-version }}
32-
extensions: mbstring, intl, pdo_sqlite
45+
extensions: mbstring, intl, pdo_mysql, pdo_sqlite
3346
ini-values: zend.assertions=1
3447
coverage: none
3548

@@ -45,7 +58,7 @@ jobs:
4558
- name: Run PHPUnit
4659
run: vendor/bin/phpunit
4760
env:
48-
DATABASE_TEST_URL: sqlite://./testdb.sqlite
61+
DATABASE_TEST_URL: mysql://root:root@127.0.0.1:3306/plugins_cakephp_test?encoding=utf8mb4
4962

5063
coding-standard:
5164
name: Coding Standard

0 commit comments

Comments
 (0)