Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ jobs:
run:
working-directory: core/components/minishop3

services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ms3_test
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -proot"
--health-interval=5s
--health-timeout=5s
--health-retries=30

env:
MS3_TEST_MYSQL_DSN: mysql:host=127.0.0.1;port=3306;dbname=ms3_test;charset=utf8mb4
MS3_TEST_MYSQL_USER: root
MS3_TEST_MYSQL_PASSWORD: root

steps:
- name: Checkout
uses: actions/checkout@v5
Expand All @@ -33,6 +52,7 @@ jobs:
with:
php-version: '8.2'
coverage: none
extensions: pdo_mysql
tools: composer:v2

- name: Install Composer dependencies
Expand Down
3 changes: 2 additions & 1 deletion core/components/minishop3/scripts/ci-php.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# PHP CI gate: syntax check + smoke + PHPUnit (no MODX/MySQL).
# PHP CI gate: syntax check + smoke + PHPUnit.
# MySQL Level-2 tests (@group mysql) run when MS3_TEST_MYSQL_DSN is set (CI service).
set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
Expand Down
Loading