Skip to content

Commit b5e5097

Browse files
committed
Run full native suites after bulk materialization
1 parent 6506030 commit b5e5097

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/mysql-parser-extension-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ jobs:
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

.github/workflows/wp-tests-phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
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()

0 commit comments

Comments
 (0)