Skip to content

Commit 9da5662

Browse files
authored
Merge pull request #1034 from gplanchat/ci/magento-integration
ci(magento): run the adapter integration tests (#738)
2 parents 370c729 + 6180c0d commit 9da5662

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,18 @@ jobs:
800800
- name: Psalm (src/DurableModule, against the real Magento classes)
801801
run: composer psalm-magento
802802

803+
# #738: the adapter's integration tests (`phpunit.magento.xml`) skip themselves unless
804+
# `magento/vendor` exists and `DURABLE_TEST_MYSQL` names a server, so until now no job ran
805+
# them. They create and drop their own tables and use GET_LOCK and SKIP LOCKED (MySQL 8.4
806+
# here), hence a database of their own on this job's server rather than the shop's.
807+
# `--fail-on-skipped`: a skip means the job stopped exercising them.
808+
- name: Magento adapter integration tests (private database)
809+
env:
810+
DURABLE_TEST_MYSQL: magento:magento@127.0.0.1:3306/durable_test
811+
run: |
812+
mysql -h 127.0.0.1 -uroot -pmagento -e "CREATE DATABASE durable_test; GRANT ALL ON durable_test.* TO 'magento'@'%';"
813+
vendor/bin/phpunit -c phpunit.magento.xml --display-skipped --fail-on-skipped
814+
803815
# ⚠ The skeleton is not in the repository — `magento/.gitignore` keeps only the overlay
804816
# there, and the development workstation had obtained it once through `create-project`.
805817
# After a bare `composer install`, `bin/magento` therefore does not exist.

0 commit comments

Comments
 (0)