THRIFT-5756 Run php tests in github actions
diff --git a/lib/php/test/Makefile.am b/lib/php/test/Makefile.am
index 30765c3..c2de405 100644
--- a/lib/php/test/Makefile.am
+++ b/lib/php/test/Makefile.am
@@ -19,37 +19,26 @@
PHPUNIT=php $(top_srcdir)/vendor/bin/phpunit
-stubs: ../../../test/v0.16/ThriftTest.thrift TestValidators.thrift
- mkdir -p ./packages/php
- $(THRIFT) --gen php -r --out ./packages/php ../../../test/v0.16/ThriftTest.thrift
- mkdir -p ./packages/phpv
- mkdir -p ./packages/phpvo
- mkdir -p ./packages/phpjs
- $(THRIFT) --gen php:validate -r --out ./packages/phpv TestValidators.thrift
- $(THRIFT) --gen php:validate,oop -r --out ./packages/phpvo TestValidators.thrift
- $(THRIFT) --gen php:json -r --out ./packages/phpjs TestValidators.thrift
+stubs: Resources/ThriftTest.thrift
+ mkdir -p ./Resources/packages/php
+ mkdir -p ./Resources/packages/phpv
+ mkdir -p ./Resources/packages/phpvo
+ mkdir -p ./Resources/packages/phpjs
+ $(THRIFT) --gen php -r --out ./Resources/packages/php Resources/ThriftTest.thrift
+ $(THRIFT) --gen php:validate -r --out ./Resources/packages/phpv Resources/ThriftTest.thrift
+ $(THRIFT) --gen php:validate,oop -r --out ./Resources/packages/phpvo Resources/ThriftTest.thrift
+ $(THRIFT) --gen php:json -r --out ./Resources/packages/phpjs Resources/ThriftTest.thrift
deps: $(top_srcdir)/composer.json
composer install --working-dir=$(top_srcdir)
all-local: deps
-check-json-serializer: deps stubs
- $(PHPUNIT) --log-junit=TEST-log-json-serializer.xml JsonSerialize/
-
-check-validator: deps stubs
- $(PHPUNIT) --log-junit=TEST-log-validator.xml Validator/
-
-check-protocol: deps stubs
- $(PHPUNIT) --log-junit=TEST-log-protocol.xml Protocol/
-
-check: deps stubs \
- check-protocol \
- check-validator \
- check-json-serializer
+check: deps stubs
+ $(PHPUNIT) --log-junit=test-log-junit.xml -c phpunit.xml /
distclean-local:
clean-local:
- $(RM) -r ./packages
- $(RM) TEST-*.xml
+ $(RM) -r ./Resources/packages
+ $(RM) test-log-junit.xml