File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 exit( 1 );
8282 }
8383 '
84- ./vendor/bin/phpunit -c ./phpunit.xml.dist tests/mysql/WP_MySQL_Lexer_Tests.php tests/parser/WP_Parser_Node_Tests.php
84+
85+ - name : Run PHPUnit tests with parser extension
86+ run : php -d extension="$GITHUB_WORKSPACE/packages/mysql-on-sqlite/ext/wp-mysql-parser/target/debug/libwp_mysql_parser.so" ./vendor/bin/phpunit -c ./phpunit.xml.dist
8587 working-directory : packages/mysql-on-sqlite
8688
8789 sqlite-driver-extension-tests :
@@ -149,3 +151,7 @@ jobs:
149151 exit( 1 );
150152 }
151153 '
154+
155+ - name : Run PHPUnit tests with SQLite driver using parser extension
156+ run : php -d extension="$GITHUB_WORKSPACE/packages/mysql-on-sqlite/ext/wp-mysql-parser/target/debug/libwp_mysql_parser.so" ./vendor/bin/phpunit -c ./phpunit.xml.dist
157+ working-directory : packages/mysql-on-sqlite
Original file line number Diff line number Diff line change 5454 - name : Build and load parser extension in WordPress PHP containers
5555 run : bash .github/workflows/wp-tests-phpunit-native-extension-setup.sh
5656
57- - name : Verify WordPress uses parser extension
58- run : cd wordpress && node tools/local-env/scripts/docker.js run --rm php php /var/www/native-verify-extension.php
57+ - name : Run WordPress PHPUnit tests with parser extension
58+ run : node .github/workflows/wp-tests-phpunit-run.js
5959
6060 - name : Stop Docker containers
6161 if : always()
You can’t perform that action at this time.
0 commit comments