fix: use Docker PHP-FPM to support sampling in conformance tests (#219)

This commit is contained in:
Kyrian Obikwelu 2026-01-02 15:59:56 +01:00 • committed by GitHub
commit 4c3e5e61c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
.PHONY: deps-stable deps-low cs phpstan tests unit-tests inspector-tests coverage ci ci-stable ci-lowest
.PHONY: deps-stable deps-low cs phpstan tests unit-tests inspector-tests coverage ci ci-stable ci-lowest conformance-tests
deps-stable:
composer update --prefer-stable
@ -21,11 +21,12 @@ unit-tests:
inspector-tests:
vendor/bin/phpunit --testsuite=inspector
conformance-server:
php -S localhost:8000 examples/server/conformance/server.php
conformance-tests:
npx @modelcontextprotocol/conformance server --url http://localhost:8000/
docker compose -f tests/Conformance/Fixtures/docker-compose.yml up -d
@echo "Waiting for server to start..."
@sleep 5
cd tests/Conformance && npx @modelcontextprotocol/conformance server --url http://localhost:8000/ || true
docker compose -f tests/Conformance/Fixtures/docker-compose.yml down
coverage:
XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite=unit --coverage-html=coverage