File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,9 @@ jobs:
105105 # Run plugin tests
106106 - name : Run Plugin Tests
107107 run : |
108- # Example: running PHPUnit test suite located in /tests directory.
109- # Customize the following command based on your actual testing framework.
110- composer update --no-interaction --prefer-dist
111- vendor/bin/phpunit --configuration phpunit.xml.dist
108+ CONTAINER_ID=$(docker-compose -f .github/docker/docker-compose.yml ps -q wordpress)
109+ doker exec $CONTAINER_ID composer update --no-interaction --prefer-dist
110+ doker exec $CONTAINER_ID phpunit --configuration phpunit.xml.dist
112111
113112 # Tear down Docker Compose
114113 - name : Shut down Docker Compose
Original file line number Diff line number Diff line change 55 * @package Shortpixel_Image_Optimiser
66 */
77
8- $ _tests_dir = '/var/www/html/tests/ ' ;
8+ $ _tests_dir = '/var/www/html/tests ' ;
99
1010if ( ! $ _tests_dir ) {
1111 $ _tests_dir = rtrim ( sys_get_temp_dir (), '/ \\' ) . '/wordpress-tests-lib ' ;
You can’t perform that action at this time.
0 commit comments